Re-exportsยง
pub use target::shutdown;pub(crate) use interrupt_controller::InterruptController;๐pub use object::NullObjectTable;pub(crate) use scheduler::PreemptDisableGuard;๐pub(crate) use scheduler::SchedulerState;๐pub(crate) use scheduler::ThreadLocalState;๐pub(crate) use scheduler::TimerQueue;๐pub use scheduler::Priority;pub use scheduler::sleep_until;pub use scheduler::start_thread;pub use scheduler::yield_timeslice;pub(crate) use sync::spinlock::BareSpinLock;๐pub(crate) use sync::spinlock::SpinLock;๐pub(crate) use sync::spinlock::SpinLockGuard;๐pub use syscall::SyscallArgs;pub(crate) use AtomicBool;๐pub(crate) use AtomicUsize;๐pub(crate) use pw_log::info;๐pub(crate) use KernelConfig;๐pub(crate) use KernelConfigInterface;๐
Modulesยง
- interrupt_
controller - object
- scheduler
- Kernel Scheduler / Context Switching engine
- sync
- syscall
- target ๐
- trace
Macrosยง
- annotate_
kernel_ state - annotate_
kernel_ trace_ buffer - annotate_
process_ from_ address - Add debug annotations for a static process
- annotate_
stack - Add debug annotations for a stack.
- annotate_
thread_ from_ address - Add debug annotations for a static thread
- declare_
non_ priv_ process - Declares a new
Processin a previously declared static process storage. - declare_
non_ priv_ process_ storage - Declare static storage for a non-privileged process.
- declare_
non_ priv_ thread - Constructs a new
Threadin global static storage and registers it. - impl_
thread_ arg_ for_ default_ zst - init_
thread - Constructs a new
Threadin global static storage. - non_
priv_ process_ id - Get the constant process ID of a non-privileged process.
- static_
init_ state - Initializes an
InitKernelStatein static storage. - static_
stack - Declare a static stack.
- trace_
span_ end - Ends a trace span with an optional format string and format arguments.
- trace_
span_ end_ if - Ends a trace span with an optional format string and format arguments if condition is true.
- trace_
span_ start - Starts a trace span with an optional format string and format arguments.
- trace_
span_ start_ if - Starts a trace span with an optional format string and format arguments if condition is true.
Structsยง
- Arch
State - Duration
- A span of time represented by an unsigned tick count.
- Init
Kernel State - Instant
- A measurement of a monotonically non-decreasing clock.
- Kernel
State
Traitsยง
Functionsยง
- bootstrap_
thread_ ๐entry - idle_
thread_ ๐entry - main
- with_
static - Stores
tin stack memory and provides a&'static mut Tto a function which will never return.