Lines Matching refs:mode
144 msq->q_perm.mode = msgflg & S_IRWXUGO; in newque()
360 out->msg_perm.mode = tbuf_old.msg_perm.mode; in copy_msqid_from_user()
766 static int testmsg(struct msg_msg *msg, long type, int mode) in testmsg() argument
768 switch (mode) { in testmsg()
1042 static struct msg_msg *find_msg(struct msg_queue *msq, long *msgtyp, int mode) in find_msg() argument
1048 if (testmsg(msg, *msgtyp, mode) && in find_msg()
1050 *msgtyp, mode)) { in find_msg()
1051 if (mode == SEARCH_LESSEQUAL && msg->m_type != 1) { in find_msg()
1054 } else if (mode == SEARCH_NUMBER) { in find_msg()
1069 int mode; in do_msgrcv() local
1087 mode = convert_mode(&msgtyp, msgflg); in do_msgrcv()
1112 msg = find_msg(msq, &msgtyp, mode); in do_msgrcv()
1152 msr_d.r_mode = mode; in do_msgrcv()
1298 msq->q_perm.mode, in sysvipc_msg_proc_show()