Lines Matching refs:msgsz
608 size_t msgsz, int msgflg) in do_msgsnd() argument
617 if (msgsz > ns->msg_ctlmax || (long) msgsz < 0 || msqid < 0) in do_msgsnd()
622 msg = load_msg(mtext, msgsz); in do_msgsnd()
627 msg->m_ts = msgsz; in do_msgsnd()
655 if (msgsz + msq->q_cbytes <= msq->q_qbytes && in do_msgsnd()
702 msq->q_cbytes += msgsz; in do_msgsnd()
704 atomic_add(msgsz, &ns->msg_bytes); in do_msgsnd()
720 SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, in SYSCALL_DEFINE4() argument
727 return do_msgsnd(msqid, mtype, msgp->mtext, msgsz, msgflg); in SYSCALL_DEFINE4()
754 size_t msgsz; in do_msg_fill() local
759 msgsz = (bufsz > msg->m_ts) ? msg->m_ts : bufsz; in do_msg_fill()
760 if (store_msg(msgp->mtext, msg, msgsz)) in do_msg_fill()
762 return msgsz; in do_msg_fill()
986 SYSCALL_DEFINE5(msgrcv, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, in SYSCALL_DEFINE5() argument
989 return do_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg, do_msg_fill); in SYSCALL_DEFINE5()