Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 3 of 3) sorted by relevance

/ipc/
Dmsg.c299 copy_msqid_to_user(void __user *buf, struct msqid64_ds *in, int version) in copy_msqid_to_user() argument
303 return copy_to_user(buf, in, sizeof(*in)); in copy_msqid_to_user()
336 return copy_to_user(buf, &out, sizeof(out)); in copy_msqid_to_user()
344 copy_msqid_from_user(struct msqid64_ds *out, void __user *buf, int version) in copy_msqid_from_user() argument
348 if (copy_from_user(out, buf, sizeof(*out))) in copy_msqid_from_user()
355 if (copy_from_user(&tbuf_old, buf, sizeof(tbuf_old))) in copy_msqid_from_user()
570 static long ksys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf, int version) in ksys_msgctl() argument
588 if (copy_to_user(buf, &msginfo, sizeof(struct msginfo))) in ksys_msgctl()
598 if (copy_msqid_to_user(buf, &msqid64, version)) in ksys_msgctl()
602 if (copy_msqid_from_user(&msqid64, buf, version)) in ksys_msgctl()
[all …]
Dshm.c750 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
[all …]
Dsem.c1176 static unsigned long copy_semid_to_user(void __user *buf, struct semid64_ds *in, int version) in copy_semid_to_user() argument
1180 return copy_to_user(buf, in, sizeof(*in)); in copy_semid_to_user()
1193 return copy_to_user(buf, &out, sizeof(out)); in copy_semid_to_user()
1553 copy_semid_from_user(struct semid64_ds *out, void __user *buf, int version) in copy_semid_from_user() argument
1557 if (copy_from_user(out, buf, sizeof(*out))) in copy_semid_from_user()
1564 if (copy_from_user(&tbuf_old, buf, sizeof(tbuf_old))) in copy_semid_from_user()
1719 static int copy_compat_semid_from_user(struct semid64_ds *out, void __user *buf, in copy_compat_semid_from_user() argument
1724 struct compat_semid64_ds __user *p = buf; in copy_compat_semid_from_user()
1727 struct compat_semid_ds __user *p = buf; in copy_compat_semid_from_user()
1732 static int copy_compat_semid_to_user(void __user *buf, struct semid64_ds *in, in copy_compat_semid_to_user() argument
[all …]