Skip to main content

Module memory

Module memory 

Source

Re-exports§

pub use address_space::kernel_address_space;
pub use address_space::AddressSpace;
pub use address_space::VmaFlags;
pub use address_space::VmaPageSize;
pub use address_space::VmaType;
pub use buddy::get_allocator;
pub use frame::AllocError;
pub use frame::FrameAllocator;
pub use frame::PhysFrame;
pub use userslice::UserSliceError;
pub use userslice::UserSliceRead;
pub use userslice::UserSliceReadWrite;
pub use userslice::UserSliceWrite;
pub use crate::sync::with_irqs_disabled;

Modules§

address_space
Per-process address spaces for Strat9-OS.
boot_alloc
Allocateur physique de boot pour les structures permanentes du noyau.
buddy
cow
Copy-on-Write (COW) support for fork()
frame
heap
paging
Virtual Memory Management (Paging) for Strat9-OS
userslice
Userspace pointer validation for Strat9-OS.
zone

Functions§

allocate_dma_frame
Allocate a zeroed 4KB frame suitable for DMA operations.
allocate_frame
Allocate a single physical frame.
allocate_frames
Allocate 2^order contiguous physical frames.
free_frame
Free a single physical frame.
free_frames
Free 2^order contiguous physical frames.
hhdm_offset
Get the current HHDM offset
init_cow_subsystem
Initialize copy-on-write metadata.
init_memory_manager
Initialize the memory management subsystem
phys_to_virt
Convert a physical address to a virtual address using the HHDM offset
set_hhdm_offset
Store the HHDM offset (call once, early in boot)
virt_to_phys
Convert a virtual address back to a physical address (reverse of phys_to_virt)