Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 6 of 6) sorted by relevance

/ipc/
Dmsg.c339 static int msgctl_down(struct ipc_namespace *ns, int msqid, int cmd, in msgctl_down() argument
347 if (cmd == IPC_SET) { in msgctl_down()
355 ipcp = ipcctl_pre_down_nolock(ns, &msg_ids(ns), msqid, cmd, in msgctl_down()
364 err = security_msg_queue_msgctl(msq, cmd); in msgctl_down()
368 switch (cmd) { in msgctl_down()
413 int cmd, int version, void __user *buf) in msgctl_nolock() argument
418 switch (cmd) { in msgctl_nolock()
433 err = security_msg_queue_msgctl(NULL, cmd); in msgctl_nolock()
444 if (cmd == MSG_INFO) { in msgctl_nolock()
472 if (cmd == MSG_STAT) { in msgctl_nolock()
[all …]
Dshm.c906 static int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, in shmctl_down() argument
914 if (cmd == IPC_SET) { in shmctl_down()
922 ipcp = ipcctl_pre_down_nolock(ns, &shm_ids(ns), shmid, cmd, in shmctl_down()
931 err = security_shm_shmctl(shp, cmd); in shmctl_down()
935 switch (cmd) { in shmctl_down()
963 int cmd, int version, void __user *buf) in shmctl_nolock() argument
969 if (cmd == IPC_INFO || cmd == SHM_INFO) { in shmctl_nolock()
970 err = security_shm_shmctl(NULL, cmd); in shmctl_nolock()
975 switch (cmd) { in shmctl_nolock()
1025 if (cmd == SHM_STAT) { in shmctl_nolock()
[all …]
Dsem.c1197 int cmd, int version, void __user *p) in semctl_nolock() argument
1202 switch (cmd) { in semctl_nolock()
1209 err = security_sem_semctl(NULL, cmd); in semctl_nolock()
1223 if (cmd == SEM_INFO) { in semctl_nolock()
1245 if (cmd == SEM_STAT) { in semctl_nolock()
1264 err = security_sem_semctl(sma, cmd); in semctl_nolock()
1357 int cmd, void __user *p) in semctl_main() argument
1378 if (ipcperms(ns, &sma->sem_perm, cmd == SETALL ? S_IWUGO : S_IRUGO)) in semctl_main()
1381 err = security_sem_semctl(sma, cmd); in semctl_main()
1386 switch (cmd) { in semctl_main()
[all …]
Dutil.h141 struct ipc_ids *ids, int id, int cmd,
146 # define ipc_parse_version(cmd) IPC_64 argument
148 int ipc_parse_version(int *cmd);
Dutil.c688 struct ipc_ids *ids, int id, int cmd, in ipcctl_pre_down_nolock() argument
702 if (cmd == IPC_SET) in ipcctl_pre_down_nolock()
725 int ipc_parse_version(int *cmd) in ipc_parse_version() argument
727 if (*cmd & IPC_64) { in ipc_parse_version()
728 *cmd ^= IPC_64; in ipc_parse_version()
Dcompat.c116 static inline int compat_ipc_parse_version(int *cmd) in compat_ipc_parse_version() argument
119 int version = *cmd & IPC_64; in compat_ipc_parse_version()
125 *cmd |= IPC_64; in compat_ipc_parse_version()
127 *cmd &= ~IPC_64; in compat_ipc_parse_version()
413 COMPAT_SYSCALL_DEFINE4(semctl, int, semid, int, semnum, int, cmd, int, arg) in COMPAT_SYSCALL_DEFINE4() argument
415 return do_compat_semctl(semid, semnum, cmd, arg); in COMPAT_SYSCALL_DEFINE4()