pub struct ShmObject {
pub name: String,
pub id: u64,
pub size: usize,
pub phys_frame: usize,
pub num_frames: usize,
pub ref_count: AtomicU32,
pub mappings: Mutex<BTreeMap<u64, ShmMapping>>,
pub owner: ProcessId,
pub unlinked: bool,
}Expand description
A named shared memory object.
Fields§
§name: StringObject name (without leading slash).
id: u64Unique object ID.
size: usizeSize in bytes (set by ftruncate).
phys_frame: usizePhysical frame number of the backing memory (contiguous).
num_frames: usizeNumber of physical frames allocated.
ref_count: AtomicU32Reference count (number of open descriptors).
mappings: Mutex<BTreeMap<u64, ShmMapping>>Per-process virtual mappings.
owner: ProcessIdCreator process ID.
unlinked: boolWhether the object has been unlinked (will be destroyed when ref_count reaches 0).