Lines Matching refs:shmid
590 static int shmctl_down(struct ipc_namespace *ns, int shmid, int cmd, in shmctl_down() argument
603 ipcp = ipcctl_pre_down(&shm_ids(ns), shmid, cmd, &shmid64.shm_perm, 0); in shmctl_down()
630 SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf) in SYSCALL_DEFINE3() argument
636 if (cmd < 0 || shmid < 0) { in SYSCALL_DEFINE3()
702 shp = shm_lock(ns, shmid); in SYSCALL_DEFINE3()
709 shp = shm_lock_check(ns, shmid); in SYSCALL_DEFINE3()
745 shp = shm_lock_check(ns, shmid); in SYSCALL_DEFINE3()
787 err = shmctl_down(ns, shmid, cmd, buf, version); in SYSCALL_DEFINE3()
806 long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr) in do_shmat() argument
823 if (shmid < 0) in do_shmat()
862 shp = shm_lock_check(ns, shmid); in do_shmat()
924 shp = shm_lock(ns, shmid); in do_shmat()
948 SYSCALL_DEFINE3(shmat, int, shmid, char __user *, shmaddr, int, shmflg) in SYSCALL_DEFINE3() argument
953 err = do_shmat(shmid, shmaddr, shmflg, &ret); in SYSCALL_DEFINE3()