Home
last modified time | relevance | path

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

/ipc/
Dmsg.c379 static int msgctl_down(struct ipc_namespace *ns, int msqid, int cmd, in msgctl_down() argument
389 ipcp = ipcctl_obtain_check(ns, &msg_ids(ns), msqid, cmd, in msgctl_down()
398 err = security_msg_queue_msgctl(&msq->q_perm, cmd); in msgctl_down()
402 switch (cmd) { in msgctl_down()
456 int cmd, struct msginfo *msginfo) in msgctl_info() argument
466 err = security_msg_queue_msgctl(NULL, cmd); in msgctl_info()
477 if (cmd == MSG_INFO) { in msgctl_info()
492 int cmd, struct msqid64_ds *p) in msgctl_stat() argument
500 if (cmd == MSG_STAT || cmd == MSG_STAT_ANY) { in msgctl_stat()
515 if (cmd == MSG_STAT_ANY) in msgctl_stat()
[all …]
Dsem.c1216 int cmd, struct semid64_ds *semid64) in semctl_stat() argument
1225 if (cmd == SEM_STAT || cmd == SEM_STAT_ANY) { in semctl_stat()
1240 if (cmd == SEM_STAT_ANY) in semctl_stat()
1248 err = security_sem_semctl(&sma->sem_perm, cmd); in semctl_stat()
1270 if (cmd == IPC_STAT) { in semctl_stat()
1290 int cmd, void __user *p) in semctl_info() argument
1296 err = security_sem_semctl(NULL, cmd); in semctl_info()
1310 if (cmd == SEM_INFO) { in semctl_info()
1387 int cmd, void __user *p) in semctl_main() argument
1406 if (ipcperms(ns, &sma->sem_perm, cmd == SETALL ? S_IWUGO : S_IRUGO)) in semctl_main()
[all …]
Dshm.c891 static int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, in shmctl_down() argument
901 ipcp = ipcctl_obtain_check(ns, &shm_ids(ns), shmid, cmd, in shmctl_down()
910 err = security_shm_shmctl(&shp->shm_perm, cmd); in shmctl_down()
914 switch (cmd) { in shmctl_down()
981 int cmd, struct shmid64_ds *tbuf) in shmctl_stat() argument
989 if (cmd == SHM_STAT || cmd == SHM_STAT_ANY) { in shmctl_stat()
1010 if (cmd == SHM_STAT_ANY) in shmctl_stat()
1018 err = security_shm_shmctl(&shp->shm_perm, cmd); in shmctl_stat()
1044 if (cmd == IPC_STAT) { in shmctl_stat()
1064 static int shmctl_do_lock(struct ipc_namespace *ns, int shmid, int cmd) in shmctl_do_lock() argument
[all …]
Dutil.h180 struct ipc_ids *ids, int id, int cmd,
193 int ipc_parse_version(int *cmd);
273 static inline int compat_ipc_parse_version(int *cmd) in compat_ipc_parse_version() argument
275 int version = *cmd & IPC_64; in compat_ipc_parse_version()
276 *cmd &= ~IPC_64; in compat_ipc_parse_version()
280 long compat_ksys_old_semctl(int semid, int semnum, int cmd, int arg);
281 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr);
286 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr);
Dutil.c689 struct ipc_ids *ids, int id, int cmd, in ipcctl_obtain_check() argument
703 if (cmd == IPC_SET) in ipcctl_obtain_check()
726 int ipc_parse_version(int *cmd) in ipc_parse_version() argument
728 if (*cmd & IPC_64) { in ipc_parse_version()
729 *cmd ^= IPC_64; in ipc_parse_version()