Lines Matching refs:msgtyp
1002 static inline int convert_mode(long *msgtyp, int msgflg)
1008 * msgtyp = 0 => get first.
1009 * msgtyp > 0 => get first message of matching type.
1010 * msgtyp < 0 => get message with least type must be < abs(msgtype).
1012 if (*msgtyp == 0)
1014 if (*msgtyp < 0) {
1015 if (*msgtyp == LONG_MIN) /* -LONG_MIN is undefined */
1016 *msgtyp = LONG_MAX;
1018 *msgtyp = -*msgtyp;
1074 static struct msg_msg *find_msg(struct msg_queue *msq, long *msgtyp, int mode)
1080 if (testmsg(msg, *msgtyp, mode) &&
1082 *msgtyp, mode)) {
1084 *msgtyp = msg->m_type - 1;
1087 if (*msgtyp == count)
1098 static long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp, int msgflg,
1119 mode = convert_mode(&msgtyp, msgflg);
1144 msg = find_msg(msq, &msgtyp, mode);
1183 msr_d.r_msgtype = msgtyp;
1265 long msgtyp, int msgflg)
1267 return do_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg, do_msg_fill);
1271 long, msgtyp, int, msgflg)
1273 return ksys_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg);
1292 compat_long_t msgtyp, int msgflg)
1294 return do_msgrcv(msqid, compat_ptr(msgp), (ssize_t)msgsz, (long)msgtyp,
1299 compat_ssize_t, msgsz, compat_long_t, msgtyp,
1302 return compat_ksys_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg);