Lines Matching refs:shmid
613 static int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, in shmctl_down() argument
626 ipcp = ipcctl_pre_down(ns, &shm_ids(ns), shmid, cmd, in shmctl_down()
654 SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf) in SYSCALL_DEFINE3() argument
660 if (cmd < 0 || shmid < 0) { in SYSCALL_DEFINE3()
726 shp = shm_lock(ns, shmid); in SYSCALL_DEFINE3()
733 shp = shm_lock_check(ns, shmid); in SYSCALL_DEFINE3()
769 shp = shm_lock_check(ns, shmid); in SYSCALL_DEFINE3()
810 err = shmctl_down(ns, shmid, cmd, buf, version); in SYSCALL_DEFINE3()
829 long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr) in do_shmat() argument
846 if (shmid < 0) in do_shmat()
885 shp = shm_lock_check(ns, shmid); in do_shmat()
950 shp = shm_lock(ns, shmid); in do_shmat()
974 SYSCALL_DEFINE3(shmat, int, shmid, char __user *, shmaddr, int, shmflg) in SYSCALL_DEFINE3() argument
979 err = do_shmat(shmid, shmaddr, shmflg, &ret); in SYSCALL_DEFINE3()