Lines Matching defs:msgp
760 const void *msgp; /* XXX msgp is actually mtext. */
766 kern_msgsnd(struct thread *td, int msqid, const void *msgp,
1019 if ((error = copyin(msgp, &msgpool[next * msginfo.msgssz],
1031 msgp = (const char *)msgp + tlen;
1113 DPRINTF(("call to msgsnd(%d, %p, %zu, %d)\n", uap->msqid, uap->msgp,
1116 if ((error = copyin(uap->msgp, &mtype, sizeof(mtype))) != 0) {
1121 (const char *)uap->msgp + sizeof(mtype),
1128 void *msgp;
1134 /* XXX msgp is actually mtext. */
1136 kern_msgrcv(struct thread *td, int msqid, void *msgp, size_t msgsz, long msgtyp,
1370 error = copyout(&msgpool[next * msginfo.msgssz], msgp, tlen);
1379 msgp = (char *)msgp + tlen;
1402 uap->msgp, uap->msgsz, uap->msgtyp, uap->msgflg));
1405 (char *)uap->msgp + sizeof(mtype), uap->msgsz,
1408 if ((error = copyout(&mtype, uap->msgp, sizeof(mtype))) != 0)
1825 const void *msgp;
1830 msgp = PTRIN(uap->msgp);
1831 if ((error = copyin(msgp, &mtype32, sizeof(mtype32))) != 0)
1835 (const char *)msgp + sizeof(mtype32),
1842 void *msgp;
1847 msgp = PTRIN(uap->msgp);
1849 (char *)msgp + sizeof(mtype32), uap->msgsz,
1853 return (copyout(&mtype32, msgp, sizeof(mtype32)));