Home
last modified time | relevance | path

Searched refs:shmflg (Results 1 – 3 of 3) sorted by relevance

/DragonOS/kernel/src/ipc/
H A Dsyscall.rs261 pub fn shmget(key: ShmKey, size: usize, shmflg: ShmFlags) -> Result<usize, SystemError> { in shmget()
263 if shmflg.contains(ShmFlags::SHM_HUGETLB) { in shmget()
271 IPC_PRIVATE => shm_manager_guard.add(key, size, shmflg), in shmget()
277 if shmflg.contains(ShmFlags::IPC_CREAT | ShmFlags::IPC_EXCL) { in shmget()
285 if !shmflg.contains(ShmFlags::IPC_CREAT) { in shmget()
290 return shm_manager_guard.add(key, size, shmflg); in shmget()
308 pub fn shmat(id: ShmId, vaddr: VirtAddr, shmflg: ShmFlags) -> Result<usize, SystemError> { in shmat()
325 let vm_flags = VmFlags::from(shmflg); in shmat()
H A Dshm.rs150 shmflg: ShmFlags, in add()
184 mode: shmflg & ShmFlags::from_bits_truncate(ModeType::S_IRWXUGO.bits()), in add()
468 pub fn set_mode(&mut self, shmflg: ShmFlags, set: bool) { in set_mode()
470 self.kern_ipc_perm.mode.insert(shmflg); in set_mode()
472 self.kern_ipc_perm.mode.remove(shmflg); in set_mode()
/DragonOS/kernel/src/syscall/
H A Dmod.rs1145 let shmflg = ShmFlags::from_bits_truncate(args[2] as u32); in handle() localVariable
1147 Self::shmget(key, size, shmflg) in handle()
1152 let shmflg = ShmFlags::from_bits_truncate(args[2] as u32); in handle() localVariable
1154 Self::shmat(id, vaddr, shmflg) in handle()