Lines Matching refs:out
757 struct shmid_ds out; in copy_shmid_to_user() local
759 memset(&out, 0, sizeof(out)); in copy_shmid_to_user()
760 ipc64_perm_to_ipc_perm(&in->shm_perm, &out.shm_perm); in copy_shmid_to_user()
761 out.shm_segsz = in->shm_segsz; in copy_shmid_to_user()
762 out.shm_atime = in->shm_atime; in copy_shmid_to_user()
763 out.shm_dtime = in->shm_dtime; in copy_shmid_to_user()
764 out.shm_ctime = in->shm_ctime; in copy_shmid_to_user()
765 out.shm_cpid = in->shm_cpid; in copy_shmid_to_user()
766 out.shm_lpid = in->shm_lpid; in copy_shmid_to_user()
767 out.shm_nattch = in->shm_nattch; in copy_shmid_to_user()
769 return copy_to_user(buf, &out, sizeof(out)); in copy_shmid_to_user()
777 copy_shmid_from_user(struct shmid64_ds *out, void __user *buf, int version) in copy_shmid_from_user() argument
781 if (copy_from_user(out, buf, sizeof(*out))) in copy_shmid_from_user()
791 out->shm_perm.uid = tbuf_old.shm_perm.uid; in copy_shmid_from_user()
792 out->shm_perm.gid = tbuf_old.shm_perm.gid; in copy_shmid_from_user()
793 out->shm_perm.mode = tbuf_old.shm_perm.mode; in copy_shmid_from_user()
809 struct shminfo out; in copy_shminfo_to_user() local
812 out.shmmax = INT_MAX; in copy_shminfo_to_user()
814 out.shmmax = (int)in->shmmax; in copy_shminfo_to_user()
816 out.shmmin = in->shmmin; in copy_shminfo_to_user()
817 out.shmmni = in->shmmni; in copy_shminfo_to_user()
818 out.shmseg = in->shmseg; in copy_shminfo_to_user()
819 out.shmall = in->shmall; in copy_shminfo_to_user()
821 return copy_to_user(buf, &out, sizeof(out)); in copy_shminfo_to_user()
1322 static int copy_compat_shmid_from_user(struct shmid64_ds *out, void __user *buf, in copy_compat_shmid_from_user() argument
1325 memset(out, 0, sizeof(*out)); in copy_compat_shmid_from_user()
1328 return get_compat_ipc64_perm(&out->shm_perm, &p->shm_perm); in copy_compat_shmid_from_user()
1331 return get_compat_ipc_perm(&out->shm_perm, &p->shm_perm); in copy_compat_shmid_from_user()
1436 goto out; in do_shmat()
1449 goto out; in do_shmat()
1454 goto out; in do_shmat()
1459 goto out; in do_shmat()
1587 out: in do_shmat()