Lines Matching refs:mode
232 struct ipc_namespace *ipc_ns, umode_t mode, in mqueue_get_inode() argument
244 inode->i_mode = mode; in mqueue_get_inode()
249 if (S_ISREG(mode)) { in mqueue_get_inode()
327 } else if (S_ISDIR(mode)) { in mqueue_get_inode()
492 static int mqueue_create_attr(struct dentry *dentry, umode_t mode, void *arg) in mqueue_create_attr() argument
515 inode = mqueue_get_inode(dir->i_sb, ipc_ns, mode, attr); in mqueue_create_attr()
538 umode_t mode, bool excl) in mqueue_create() argument
540 return mqueue_create_attr(dentry, mode, NULL); in mqueue_create()
772 umode_t mode, struct filename *name, in prepare_open() argument
785 return vfs_mkobj2(mnt, dentry, mode & ~current_umask(), in prepare_open()
798 static int do_mq_open(const char __user *u_name, int oflag, umode_t mode, in do_mq_open() argument
808 audit_mq_open(oflag, mode, attr); in do_mq_open()
825 error = prepare_open(path.mnt, path.dentry, oflag, ro, mode, name, attr); in do_mq_open()
847 SYSCALL_DEFINE4(mq_open, const char __user *, u_name, int, oflag, umode_t, mode, in SYSCALL_DEFINE4() argument
854 return do_mq_open(u_name, oflag, mode, u_attr ? &attr : NULL); in SYSCALL_DEFINE4()
1461 int, oflag, compat_mode_t, mode, in COMPAT_SYSCALL_DEFINE4() argument
1470 return do_mq_open(u_name, oflag, mode, p); in COMPAT_SYSCALL_DEFINE4()