Lines Matching defs:mode
156 msq->q_perm.mode = msgflg & S_IRWXUGO;
370 out->msg_perm.mode = tbuf_old.msg_perm.mode;
387 * to be held in write mode.
790 static int testmsg(struct msg_msg *msg, long type, int mode)
792 switch (mode) {
1082 static struct msg_msg *find_msg(struct msg_queue *msq, long *msgtyp, int mode)
1089 if (testmsg(msg, *msgtyp, mode) && !security_msg_queue_msgrcv(&msq->q_perm, msg, current, *msgtyp, mode)) {
1090 if (mode == SEARCH_LESSEQUAL && msg->m_type != 1) {
1093 } else if (mode == SEARCH_NUMBER) {
1110 int mode;
1131 mode = convert_mode(&msgtyp, msgflg);
1157 msg = find_msg(msq, &msgtyp, mode);
1197 msr_d.r_mode = mode;
1347 msq->q_perm.id, msq->q_perm.mode, msq->q_cbytes, msq->q_qnum, pid_nr_ns(msq->q_lspid, pid_ns),