Lines Matching refs:buf
750 static inline unsigned long copy_shmid_to_user(void __user *buf, struct shmid64_ds *in, int version) in copy_shmid_to_user() argument
754 return copy_to_user(buf, in, sizeof(*in)); 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()
788 if (copy_from_user(&tbuf_old, buf, sizeof(tbuf_old))) in copy_shmid_from_user()
802 static inline unsigned long copy_shminfo_to_user(void __user *buf, struct shminfo64 *in, int versio… in copy_shminfo_to_user() argument
806 return copy_to_user(buf, in, sizeof(*in)); in copy_shminfo_to_user()
821 return copy_to_user(buf, &out, sizeof(out)); in copy_shminfo_to_user()
1140 static long ksys_shmctl(int shmid, int cmd, struct shmid_ds __user *buf, int version) in ksys_shmctl() argument
1157 if (copy_shminfo_to_user(buf, &shminfo, version)) in ksys_shmctl()
1166 if (copy_to_user(buf, &shm_info, sizeof(shm_info))) in ksys_shmctl()
1176 if (copy_shmid_to_user(buf, &sem64, version)) in ksys_shmctl()
1181 if (copy_shmid_from_user(&sem64, buf, version)) in ksys_shmctl()
1194 SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf) in SYSCALL_DEFINE3() argument
1196 return ksys_shmctl(shmid, cmd, buf, IPC_64); in SYSCALL_DEFINE3()
1200 long ksys_old_shmctl(int shmid, int cmd, struct shmid_ds __user *buf) in ksys_old_shmctl() argument
1204 return ksys_shmctl(shmid, cmd, buf, version); in ksys_old_shmctl()
1207 SYSCALL_DEFINE3(old_shmctl, int, shmid, int, cmd, struct shmid_ds __user *, buf) in SYSCALL_DEFINE3() argument
1209 return ksys_old_shmctl(shmid, cmd, buf); in SYSCALL_DEFINE3()
1247 static int copy_compat_shminfo_to_user(void __user *buf, struct shminfo64 *in, in copy_compat_shminfo_to_user() argument
1260 return copy_to_user(buf, &info, sizeof(info)); in copy_compat_shminfo_to_user()
1269 return copy_to_user(buf, &info, sizeof(info)); in copy_compat_shminfo_to_user()
1288 static int copy_compat_shmid_to_user(void __user *buf, struct shmid64_ds *in, in copy_compat_shmid_to_user() argument
1305 return copy_to_user(buf, &v, sizeof(v)); in copy_compat_shmid_to_user()
1318 return copy_to_user(buf, &v, sizeof(v)); in copy_compat_shmid_to_user()
1322 static int copy_compat_shmid_from_user(struct shmid64_ds *out, void __user *buf, in copy_compat_shmid_from_user() argument
1327 struct compat_shmid64_ds __user *p = buf; in copy_compat_shmid_from_user()
1330 struct compat_shmid_ds __user *p = buf; in copy_compat_shmid_from_user()