pub struct SharedMemoryManager { /* private fields */ }Expand description
Shared memory manager
Implementations§
Sourcepub fn create_region(
&self,
owner: ProcessId,
size: usize,
cache_policy: CachePolicy,
numa_node: Option<u32>,
) -> Result<u64>
pub fn create_region( &self, owner: ProcessId, size: usize, cache_policy: CachePolicy, numa_node: Option<u32>, ) -> Result<u64>
Create a new shared memory region
Sourcepub fn get_region(&self, id: u64) -> Option<u64>
pub fn get_region(&self, id: u64) -> Option<u64>
Get a shared region by ID
Sourcepub fn remove_region(&self, id: u64) -> Result<()>
pub fn remove_region(&self, id: u64) -> Result<()>
Remove a shared region
Grant a process access to a shared region.
Records a pending mapping for the target process. The actual page-
table insertion happens when the process calls sys_ipc_map_memory.
Sourcepub fn numa_usage(&self, node: u32) -> Option<u64>
pub fn numa_usage(&self, node: u32) -> Option<u64>
Get NUMA memory usage statistics