Searched refs:cmd (Results 1 – 5 of 5) sorted by relevance
/ipc/ |
D | msg.c | 400 static int msgctl_down(struct ipc_namespace *ns, int msqid, int cmd, in msgctl_down() argument 410 ipcp = ipcctl_obtain_check(ns, &msg_ids(ns), msqid, cmd, in msgctl_down() 419 err = security_msg_queue_msgctl(&msq->q_perm, cmd); in msgctl_down() 423 switch (cmd) { in msgctl_down() 477 int cmd, struct msginfo *msginfo) in msgctl_info() argument 487 err = security_msg_queue_msgctl(NULL, cmd); in msgctl_info() 498 if (cmd == MSG_INFO) { in msgctl_info() 513 int cmd, struct msqid64_ds *p) in msgctl_stat() argument 521 if (cmd == MSG_STAT || cmd == MSG_STAT_ANY) { in msgctl_stat() 536 if (cmd == MSG_STAT_ANY) in msgctl_stat() [all …]
|
D | sem.c | 1236 int cmd, struct semid64_ds *semid64) in semctl_stat() argument 1245 if (cmd == SEM_STAT || cmd == SEM_STAT_ANY) { in semctl_stat() 1260 if (cmd == SEM_STAT_ANY) in semctl_stat() 1268 err = security_sem_semctl(&sma->sem_perm, cmd); in semctl_stat() 1290 if (cmd == IPC_STAT) { in semctl_stat() 1310 int cmd, void __user *p) in semctl_info() argument 1316 err = security_sem_semctl(NULL, cmd); in semctl_info() 1330 if (cmd == SEM_INFO) { in semctl_info() 1407 int cmd, void __user *p) in semctl_main() argument 1426 if (ipcperms(ns, &sma->sem_perm, cmd == SETALL ? S_IWUGO : S_IRUGO)) in semctl_main() [all …]
|
D | shm.c | 986 static int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, in shmctl_down() argument 996 ipcp = ipcctl_obtain_check(ns, &shm_ids(ns), shmid, cmd, in shmctl_down() 1005 err = security_shm_shmctl(&shp->shm_perm, cmd); in shmctl_down() 1009 switch (cmd) { in shmctl_down() 1076 int cmd, struct shmid64_ds *tbuf) in shmctl_stat() argument 1084 if (cmd == SHM_STAT || cmd == SHM_STAT_ANY) { in shmctl_stat() 1105 if (cmd == SHM_STAT_ANY) in shmctl_stat() 1113 err = security_shm_shmctl(&shp->shm_perm, cmd); in shmctl_stat() 1139 if (cmd == IPC_STAT) { in shmctl_stat() 1159 static int shmctl_do_lock(struct ipc_namespace *ns, int shmid, int cmd) in shmctl_do_lock() argument [all …]
|
D | util.h | 183 struct ipc_ids *ids, int id, int cmd, 196 int ipc_parse_version(int *cmd); 276 static inline int compat_ipc_parse_version(int *cmd) in compat_ipc_parse_version() argument 278 int version = *cmd & IPC_64; in compat_ipc_parse_version() 279 *cmd &= ~IPC_64; in compat_ipc_parse_version() 283 long compat_ksys_old_semctl(int semid, int semnum, int cmd, int arg); 284 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr); 289 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr);
|
D | util.c | 723 struct ipc_ids *ids, int id, int cmd, in ipcctl_obtain_check() argument 737 if (cmd == IPC_SET) in ipcctl_obtain_check() 760 int ipc_parse_version(int *cmd) in ipc_parse_version() argument 762 if (*cmd & IPC_64) { in ipc_parse_version() 763 *cmd ^= IPC_64; in ipc_parse_version()
|