Lines Matching refs:shmid
811 static int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, in shmctl_down() argument
827 ipcp = ipcctl_pre_down_nolock(ns, &shm_ids(ns), shmid, cmd, in shmctl_down()
867 static int shmctl_nolock(struct ipc_namespace *ns, int shmid, in shmctl_nolock() argument
931 shp = shm_obtain_object(ns, shmid); in shmctl_nolock()
938 shp = shm_obtain_object_check(ns, shmid); in shmctl_nolock()
981 SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf) in SYSCALL_DEFINE3() argument
987 if (cmd < 0 || shmid < 0) in SYSCALL_DEFINE3()
998 return shmctl_nolock(ns, shmid, cmd, version, buf); in SYSCALL_DEFINE3()
1001 return shmctl_down(ns, shmid, cmd, buf, version); in SYSCALL_DEFINE3()
1008 shp = shm_obtain_object_check(ns, shmid); in SYSCALL_DEFINE3()
1086 long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr, in do_shmat() argument
1104 if (shmid < 0) in do_shmat()
1144 shp = shm_obtain_object_check(ns, shmid); in do_shmat()
1228 shp = shm_lock(ns, shmid); in do_shmat()
1243 SYSCALL_DEFINE3(shmat, int, shmid, char __user *, shmaddr, int, shmflg) in SYSCALL_DEFINE3() argument
1248 err = do_shmat(shmid, shmaddr, shmflg, &ret, SHMLBA); in SYSCALL_DEFINE3()