Static axmem::SHARED_MEMS

source ·
pub static SHARED_MEMS: SpinNoIrq<BTreeMap<i32, Arc<SharedMem>>>
Expand description

This struct only hold SharedMem that are not IPC_PRIVATE. IPC_PRIVATE SharedMem will be stored in MemorySet::detached_mem.

This is the only place we can query a SharedMem using its shmid.

It holds an Arc to the SharedMem. If the Arc::strong_count() is 1, SharedMem will be dropped.