Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. kernel

Crate kernel

Crate kernel 

Source

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 Process in 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 Thread in global static storage and registers it.
impl_thread_arg_for_default_zst
init_thread
Constructs a new Thread in global static storage.
non_priv_process_id
Get the constant process ID of a non-privileged process.
static_init_state
Initializes an InitKernelState in 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ยง

ArchState
Duration
A span of time represented by an unsigned tick count.
InitKernelState
Instant
A measurement of a monotonically non-decreasing clock.
KernelState

Traitsยง

Arch
Kernel

Functionsยง

bootstrap_thread_entry ๐Ÿ”’
idle_thread_entry ๐Ÿ”’
main
with_static
Stores t in stack memory and provides a &'static mut T to a function which will never return.