Home
last modified time | relevance | path

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

/ipc/
Dmsg.c400 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 …]
Dsem.c1233 int cmd, struct semid64_ds *semid64) in semctl_stat() argument
1242 if (cmd == SEM_STAT || cmd == SEM_STAT_ANY) { in semctl_stat()
1257 if (cmd == SEM_STAT_ANY) in semctl_stat()
1265 err = security_sem_semctl(&sma->sem_perm, cmd); in semctl_stat()
1287 if (cmd == IPC_STAT) { in semctl_stat()
1307 int cmd, void __user *p) in semctl_info() argument
1313 err = security_sem_semctl(NULL, cmd); in semctl_info()
1327 if (cmd == SEM_INFO) { in semctl_info()
1404 int cmd, void __user *p) in semctl_main() argument
1423 if (ipcperms(ns, &sma->sem_perm, cmd == SETALL ? S_IWUGO : S_IRUGO)) in semctl_main()
[all …]
Dshm.c986 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 …]
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()