Skip to main content

Crate kernel_api

Crate kernel_api 

Source
Expand description

Popcorn2 kernel public API

Provides a mix of utility types and functions to replace std, as well as a stable API to kernel internals.

Modulesยง

address_spacefull
Types to manipulate the kernel and userspace address spaces
allocatorfull
Physical and virtual memory allocation
bridge ๐Ÿ”’ full
channelfull
An async multi-producer, single-consumer channel
detectfull
Provides system feature detection
executorfull
mapping
RAII memory mappings
memory
Provides primitives for interfacing with memory
modulesfull
Kernel modules.
ptr
Provides pointer wrappers for safely accessing userspace
sealed ๐Ÿ”’
syncfull
Provides kernel synchronisation primitives
syscallfull
threadingfull
Provides an interface to the scheduler and threading subsystem
timefull
Temporal quantification

Macrosยง

dbg
Prints and returns the value of a given expression for quick and dirty debugging
is_x86_feature_detectedx86 or x86-64
Returns a bool if the current system supports the requested feature
kernel_modulefull
Registers a kernel module with the kernel.
newtype_enum