Home
last modified time | relevance | path

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

/DragonOS/kernel/src/ipc/
H A Dsyscall.rs37 shm::{ShmCtlCmd, ShmFlags, ShmId, ShmKey},
480 cmd: ShmCtlCmd, in shmctl() argument
488 ShmCtlCmd::IpcInfo => shm_manager_guard.ipc_info(user_buf, from_user), in shmctl()
490 ShmCtlCmd::ShmInfo => shm_manager_guard.shm_info(user_buf, from_user), in shmctl()
492 ShmCtlCmd::ShmStat | ShmCtlCmd::ShmtStatAny | ShmCtlCmd::IpcStat => { in shmctl()
496 ShmCtlCmd::IpcSet => shm_manager_guard.ipc_set(id, user_buf, from_user), in shmctl()
498 ShmCtlCmd::IpcRmid => shm_manager_guard.ipc_rmid(id), in shmctl()
500 ShmCtlCmd::ShmLock => shm_manager_guard.shm_lock(id), in shmctl()
502 ShmCtlCmd::ShmUnlock => shm_manager_guard.shm_unlock(id), in shmctl()
504 ShmCtlCmd::Default => Err(SystemError::EINVAL), in shmctl()
H A Dshm.rs67 pub enum ShmCtlCmd { enum
91 impl From<usize> for ShmCtlCmd { implementation
92 fn from(cmd: usize) -> ShmCtlCmd { in from() argument
108 impl PartialEq for ShmCtlCmd { implementation
109 fn eq(&self, other: &ShmCtlCmd) -> bool { in eq()
250 cmd: ShmCtlCmd, in shm_stat() argument
286 let r: usize = if cmd == ShmCtlCmd::IpcStat { in shm_stat()
/DragonOS/kernel/src/syscall/
H A Dmod.rs9 ipc::shm::{ShmCtlCmd, ShmFlags, ShmId, ShmKey},
1147 let cmd = ShmCtlCmd::from(args[1]); in handle()