Home
last modified time | relevance | path

Searched refs:shm_id (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/ipc/
H A Dshm.rs158 let shm_id = ShmId::new(id); in add() localVariable
169 page.write_irqsave().set_shm_id(shm_id); in add()
178 id: shm_id, in add()
190 self.id2shm.insert(shm_id, shm_kernel); in add()
191 self.key2id.insert(key, shm_id); in add()
193 return Ok(shm_id.data()); in add()
H A Dsyscall.rs446 let shm_id = page.read_irqsave().shm_id().ok_or(SystemError::EINVAL)?; in shmdt() localVariable
452 .get_mut(&shm_id) in shmdt()
/DragonOS/kernel/src/mm/
H A Dpage.rs340 shm_id: Option<ShmId>, field
359 shm_id: None, in new()
389 pub fn shm_id(&self) -> Option<ShmId> { in shm_id() method
390 self.shm_id in shm_id()
418 pub fn set_shm_id(&mut self, shm_id: ShmId) { in set_shm_id()
419 self.shm_id = Some(shm_id); in set_shm_id()
/DragonOS/kernel/src/mm/allocator/
H A Dpage_frame.rs376 shm_manager_lock().free_id(&page_guard.shm_id().unwrap()); in deallocate_page_frames()