Lines Matching defs:int

80 	int			r_mode;
103 static inline struct msg_queue *msq_obtain_object(struct ipc_namespace *ns, int id)
114 int id)
145 static int newque(struct ipc_namespace *ns, struct ipc_params *params)
148 int retval;
150 int msgflg = params->flg;
250 static void expunge_all(struct msg_queue *msq, int res,
301 long ksys_msgget(key_t key, int msgflg)
318 SYSCALL_DEFINE2(msgget, key_t, key, int, msgflg)
324 copy_msqid_to_user(void __user *buf, struct msqid64_ds *in, int version)
369 copy_msqid_from_user(struct msqid64_ds *out, void __user *buf, int version)
404 static int msgctl_down(struct ipc_namespace *ns, int msqid, int cmd,
405 struct ipc64_perm *perm, int msg_qbytes)
409 int err;
480 static int msgctl_info(struct ipc_namespace *ns, int msqid,
481 int cmd, struct msginfo *msginfo)
483 int err;
484 int max_idx;
507 msginfo->msgmap = min_t(int,
510 msginfo->msgtql = min_t(int,
521 static int msgctl_stat(struct ipc_namespace *ns, int msqid,
522 int cmd, struct msqid64_ds *p)
525 int err;
600 static long ksys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf, int version)
604 int err;
643 SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
649 long ksys_old_msgctl(int msqid, int cmd, struct msqid_ds __user *buf)
651 int version = ipc_parse_version(&cmd);
656 SYSCALL_DEFINE3(old_msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf)
680 static int copy_compat_msqid_from_user(struct msqid64_ds *out, void __user *buf,
681 int version)
700 static int copy_compat_msqid_to_user(void __user *buf, struct msqid64_ds *in,
701 int version)
735 static long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr, int version)
738 int err;
777 COMPAT_SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, void __user *, uptr)
783 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr)
785 int version = compat_ipc_parse_version(&cmd);
790 COMPAT_SYSCALL_DEFINE3(old_msgctl, int, msqid, int, cmd, void __user *, uptr)
797 static int testmsg(struct msg_msg *msg, long type, int mode)
819 static inline int pipelined_send(struct msg_queue *msq, struct msg_msg *msg,
854 static long do_msgsnd(int msqid, long mtype, void __user *mtext,
855 size_t msgsz, int msgflg)
859 int err;
967 long ksys_msgsnd(int msqid, struct msgbuf __user *msgp, size_t msgsz,
968 int msgflg)
977 SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz,
978 int, msgflg)
990 long compat_ksys_msgsnd(int msqid, compat_uptr_t msgp,
991 compat_ssize_t msgsz, int msgflg)
1001 COMPAT_SYSCALL_DEFINE4(msgsnd, int, msqid, compat_uptr_t, msgp,
1002 compat_ssize_t, msgsz, int, msgflg)
1008 static inline int convert_mode(long *msgtyp, int msgflg)
1080 static struct msg_msg *find_msg(struct msg_queue *msq, long *msgtyp, int mode)
1104 static long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp, int msgflg,
1107 int mode;
1268 long ksys_msgrcv(int msqid, struct msgbuf __user *msgp, size_t msgsz,
1269 long msgtyp, int msgflg)
1274 SYSCALL_DEFINE5(msgrcv, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz,
1275 long, msgtyp, int, msgflg)
1295 long compat_ksys_msgrcv(int msqid, compat_uptr_t msgp, compat_ssize_t msgsz,
1296 compat_long_t msgtyp, int msgflg)
1302 COMPAT_SYSCALL_DEFINE5(msgrcv, int, msqid, compat_uptr_t, msgp,
1304 int, msgflg)
1310 int msg_init_ns(struct ipc_namespace *ns)
1312 int ret;
1345 static int sysvipc_msg_proc_show(struct seq_file *s, void *it)