Lines Matching defs:smp
668 struct msg *smp; /* ptr to best msg on q */
697 smp = msgrcv_lookup(qp, msgtyp);
699 if (smp) {
703 if ((smp->msg_flags & MSG_RCVCOPY) == 0) {
705 long copy_type = smp->msg_type;
711 smp, msgp, msgflg);
805 size_t msgsz, struct msg *smp, struct ipcmsgbuf *msgp, int msgflg)
813 if (msgsz < smp->msg_size) {
820 xtsz = smp->msg_size;
829 ASSERT((smp->msg_flags & MSG_RCVCOPY) == 0);
830 smp->msg_flags |= MSG_RCVCOPY;
831 msg_hold(smp);
839 copyerror = copyout(&smp->msg_type, msgp,
840 sizeof (smp->msg_type));
845 int32_t msg_type32 = smp->msg_type;
852 copyerror = copyout(smp->msg_addr,
864 ASSERT(smp->msg_flags & MSG_RCVCOPY);
865 smp->msg_flags &= ~MSG_RCVCOPY;
866 msg_rele(smp);
875 msgunlink(qp, smp);
882 struct msg *smp = NULL;
890 smp = mp;
905 smp = mp;
928 !(smp && smp->msg_type <= mp->msg_type)) {
929 smp = mp;
936 if (smp) {
940 qp->msg_lowest_type = smp->msg_type;
944 return (smp);