Lines Matching refs:msgp

963 long ksys_msgsnd(int msqid, struct msgbuf __user *msgp, size_t msgsz, int msgflg)
967 if (get_user(mtype, &msgp->mtype)) {
970 return do_msgsnd(msqid, mtype, msgp->mtext, msgsz, msgflg);
973 SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, int, msgflg)
975 return ksys_msgsnd(msqid, msgp, msgsz, msgflg);
985 long compat_ksys_msgsnd(int msqid, compat_uptr_t msgp, compat_ssize_t msgsz, int msgflg)
987 struct compat_msgbuf __user *up = compat_ptr(msgp);
996 COMPAT_SYSCALL_DEFINE4(msgsnd, int, msqid, compat_uptr_t, msgp, compat_ssize_t, msgsz, int, msgflg)
998 return compat_ksys_msgsnd(msqid, msgp, msgsz, msgflg);
1032 struct msgbuf __user *msgp = dest;
1035 if (put_user(msg->m_type, &msgp->mtype)) {
1040 if (store_msg(msgp->mtext, msg, msgsz)) {
1279 long ksys_msgrcv(int msqid, struct msgbuf __user *msgp, size_t msgsz, long msgtyp, int msgflg)
1281 return do_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg, do_msg_fill);
1284 SYSCALL_DEFINE5(msgrcv, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, long, msgtyp, int, msgflg)
1286 return ksys_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg);
1292 struct compat_msgbuf __user *msgp = dest;
1295 if (put_user(msg->m_type, &msgp->mtype)) {
1300 if (store_msg(msgp->mtext, msg, msgsz)) {
1306 long compat_ksys_msgrcv(int msqid, compat_uptr_t msgp, compat_ssize_t msgsz, compat_long_t msgtyp, int msgflg)
1308 return do_msgrcv(msqid, compat_ptr(msgp), (ssize_t)msgsz, (long)msgtyp, msgflg, compat_do_msg_fill);
1311 COMPAT_SYSCALL_DEFINE5(msgrcv, int, msqid, compat_uptr_t, msgp, compat_ssize_t, msgsz, compat_long_t, msgtyp, int,
1314 return compat_ksys_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg);