Lines Matching refs:msgflg
139 * @params: ptr to the structure that contains the key and msgflg
148 int msgflg = params->flg;
154 msq->q_perm.mode = msgflg & S_IRWXUGO;
297 long ksys_msgget(key_t key, int msgflg)
309 msg_params.flg = msgflg;
314 SYSCALL_DEFINE2(msgget, key_t, key, int, msgflg)
316 return ksys_msgget(key, msgflg);
843 size_t msgsz, int msgflg)
887 err = security_msg_queue_msgsnd(&msq->q_perm, msg, msgflg);
895 if (msgflg & IPC_NOWAIT) {
956 int msgflg)
962 return do_msgsnd(msqid, mtype, msgp->mtext, msgsz, msgflg);
966 int, msgflg)
968 return ksys_msgsnd(msqid, msgp, msgsz, msgflg);
979 compat_ssize_t msgsz, int msgflg)
986 return do_msgsnd(msqid, mtype, up->mtext, (ssize_t)msgsz, msgflg);
990 compat_ssize_t, msgsz, int, msgflg)
992 return compat_ksys_msgsnd(msqid, msgp, msgsz, msgflg);
996 static inline int convert_mode(long *msgtyp, int msgflg)
998 if (msgflg & MSG_COPY)
1015 if (msgflg & MSG_EXCEPT)
1092 static long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp, int msgflg,
1106 if (msgflg & MSG_COPY) {
1107 if ((msgflg & MSG_EXCEPT) || !(msgflg & IPC_NOWAIT))
1113 mode = convert_mode(&msgtyp, msgflg);
1144 if ((bufsz < msg->m_ts) && !(msgflg & MSG_NOERROR)) {
1152 if (msgflg & MSG_COPY) {
1170 if (msgflg & IPC_NOWAIT) {
1179 if (msgflg & MSG_NOERROR)
1259 long msgtyp, int msgflg)
1261 return do_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg, do_msg_fill);
1265 long, msgtyp, int, msgflg)
1267 return ksys_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg);
1286 compat_long_t msgtyp, int msgflg)
1289 msgflg, compat_do_msg_fill);
1294 int, msgflg)
1296 return compat_ksys_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg);