Lines Matching refs:msgflg

140  * @params: ptr to the structure that contains the key and msgflg
149 int msgflg = params->flg;
155 msq->q_perm.mode = msgflg & S_IRWXUGO;
298 long ksys_msgget(key_t key, int msgflg)
310 msg_params.flg = msgflg;
315 SYSCALL_DEFINE2(msgget, key_t, key, int, msgflg)
317 return ksys_msgget(key, msgflg);
849 size_t msgsz, int msgflg)
893 err = security_msg_queue_msgsnd(&msq->q_perm, msg, msgflg);
901 if (msgflg & IPC_NOWAIT) {
962 int msgflg)
968 return do_msgsnd(msqid, mtype, msgp->mtext, msgsz, msgflg);
972 int, msgflg)
974 return ksys_msgsnd(msqid, msgp, msgsz, msgflg);
985 compat_ssize_t msgsz, int msgflg)
992 return do_msgsnd(msqid, mtype, up->mtext, (ssize_t)msgsz, msgflg);
996 compat_ssize_t, msgsz, int, msgflg)
998 return compat_ksys_msgsnd(msqid, msgp, msgsz, msgflg);
1002 static inline int convert_mode(long *msgtyp, int msgflg)
1004 if (msgflg & MSG_COPY)
1021 if (msgflg & MSG_EXCEPT)
1098 static long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp, int msgflg,
1112 if (msgflg & MSG_COPY) {
1113 if ((msgflg & MSG_EXCEPT) || !(msgflg & IPC_NOWAIT))
1119 mode = convert_mode(&msgtyp, msgflg);
1150 if ((bufsz < msg->m_ts) && !(msgflg & MSG_NOERROR)) {
1158 if (msgflg & MSG_COPY) {
1176 if (msgflg & IPC_NOWAIT) {
1185 if (msgflg & MSG_NOERROR)
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)
1295 msgflg, compat_do_msg_fill);
1300 int, msgflg)
1302 return compat_ksys_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg);