Lines Matching refs:msgsz
610 size_t msgsz, int msgflg) in do_msgsnd() argument
619 if (msgsz > ns->msg_ctlmax || (long) msgsz < 0 || msqid < 0) in do_msgsnd()
624 msg = load_msg(mtext, msgsz); in do_msgsnd()
629 msg->m_ts = msgsz; in do_msgsnd()
657 if (msgsz + msq->q_cbytes <= msq->q_qbytes && in do_msgsnd()
704 msq->q_cbytes += msgsz; in do_msgsnd()
706 atomic_add(msgsz, &ns->msg_bytes); in do_msgsnd()
722 SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, in SYSCALL_DEFINE4() argument
729 return do_msgsnd(msqid, mtype, msgp->mtext, msgsz, msgflg); in SYSCALL_DEFINE4()
756 size_t msgsz; in do_msg_fill() local
761 msgsz = (bufsz > msg->m_ts) ? msg->m_ts : bufsz; in do_msg_fill()
762 if (store_msg(msgp->mtext, msg, msgsz)) in do_msg_fill()
764 return msgsz; in do_msg_fill()
1014 SYSCALL_DEFINE5(msgrcv, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, in SYSCALL_DEFINE5() argument
1017 return do_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg, do_msg_fill); in SYSCALL_DEFINE5()