Skip to main content

Crate ostd

Crate ostd 

Source
Expand description

The standard library for Asterinas and other Rust OSes.

Re-exports§

pub use self::error::Error;
pub use self::prelude::Result;

Modules§

arch
Platform-specific code for the x86 platform.
boot
The architecture-independent boot module, which provides
bus
Bus operations
cpu
CPU-related definitions.
error
io
Device I/O access and corresponding allocator.
mm
Virtual memory (VM).
prelude
The prelude.
specs
sync
Useful synchronization primitives.
task
Tasks are the unit of code execution.
timer
The timer support.
trap
Handles trap across kernel and user space.
util
Utility types and methods.

Macros§

const_assert
Asserts that a boolean expression is true at compile-time.
if_tdx_enabled
Inserts a TDX-specific code block.
ptr_null_of
Creates a pointer whose type matches the expression, but whose value is always NULL.

Traits§

Pod
A marker trait for plain old data (POD).

Derive Macros§

Pod
Deriving Pod trait for a struct or union.