struct SharedMemoryState {
paddr: usize,
size: usize,
capacity: usize,
permissions: usize,
valid: bool,
mapping_count: usize,
stale_pages: Vec<(usize, usize)>,
owns_memory: bool,
}Expand description
Internal state of a shared memory object
Fields§
§paddr: usizePhysical address of the shared memory region
size: usizeSize of the shared memory region in bytes
capacity: usizeAllocated capacity of the shared memory region in bytes
permissions: usizeAccess permissions for the shared memory
valid: boolWhether this shared memory is still valid
mapping_count: usizeNumber of active mappings
stale_pages: Vec<(usize, usize)>Old allocations kept alive while mappings still exist
owns_memory: boolWhether this object owns the physical memory (should free on drop)