Lines Matching refs:cmd
906 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()
1045 err = security_shm_shmctl(shp, cmd); in shmctl_nolock()
1076 SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf) in SYSCALL_DEFINE3() argument
1082 if (cmd < 0 || shmid < 0) in SYSCALL_DEFINE3()
1085 version = ipc_parse_version(&cmd); in SYSCALL_DEFINE3()
1088 switch (cmd) { in SYSCALL_DEFINE3()
1093 return shmctl_nolock(ns, shmid, cmd, version, buf); in SYSCALL_DEFINE3()
1096 return shmctl_down(ns, shmid, cmd, buf, version); in SYSCALL_DEFINE3()
1110 err = security_shm_shmctl(shp, cmd); in SYSCALL_DEFINE3()
1129 if (cmd == SHM_LOCK && !rlimit(RLIMIT_MEMLOCK)) { in SYSCALL_DEFINE3()
1139 if (cmd == SHM_LOCK) { in SYSCALL_DEFINE3()