/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | test_sysctl.c | 20 int open_flags; member 41 .open_flags = O_RDONLY, 52 .open_flags = O_RDONLY, 63 .open_flags = O_RDONLY, 84 .open_flags = O_RDONLY, 105 .open_flags = O_WRONLY, 128 .open_flags = O_WRONLY, 144 .open_flags = O_RDONLY, 165 .open_flags = O_RDONLY, 192 .open_flags [all...] |
H A D | libbpf_get_fd_by_id_opts.c | 20 .open_flags = BPF_F_RDONLY, in test_libbpf_get_fd_by_id_opts()
|
/linux/fs/fuse/ |
H A D | iomode.c | 177 (ff->open_flags & ~FOPEN_PASSTHROUGH_MASK)) in fuse_file_passthrough_open() 215 if (fuse_inode_backing(fi) && !(ff->open_flags & FOPEN_PASSTHROUGH)) in fuse_file_io_open() 221 if (!(ff->open_flags & FOPEN_DIRECT_IO)) in fuse_file_io_open() 222 ff->open_flags &= ~FOPEN_PARALLEL_DIRECT_WRITES; in fuse_file_io_open() 232 if ((ff->open_flags & FOPEN_DIRECT_IO) && in fuse_file_io_open() 233 !(ff->open_flags & FOPEN_PASSTHROUGH)) in fuse_file_io_open() 236 if (ff->open_flags & FOPEN_PASSTHROUGH) in fuse_file_io_open() 246 pr_debug("failed to open file in requested io mode (open_flags=0x%x, err=%i).\n", in fuse_file_io_open() 247 ff->open_flags, err); in fuse_file_io_open()
|
H A D | file.c | 27 unsigned int open_flags, int opcode, in fuse_send_open() argument 34 inarg.flags = open_flags & ~(O_CREAT | O_EXCL | O_NOCTTY); in fuse_send_open() 40 inarg.open_flags |= FUSE_OPEN_KILL_SUIDGID; in fuse_send_open() 128 unsigned int open_flags, bool isdir) in fuse_file_open() argument 141 ff->open_flags = FOPEN_KEEP_CACHE | (isdir ? FOPEN_CACHE_DIR : 0); in fuse_file_open() 147 err = fuse_send_open(fm, nodeid, open_flags, opcode, outargp); in fuse_file_open() 150 ff->open_flags = outargp->open_flags; in fuse_file_open() 166 ff->open_flags &= ~FOPEN_DIRECT_IO; in fuse_file_open() 210 if (ff->open_flags in fuse_finish_open() 338 fuse_file_release(struct inode * inode,struct fuse_file * ff,unsigned int open_flags,fl_owner_t id,bool isdir) fuse_file_release() argument [all...] |
H A D | fuse_i.h | 256 u32 open_flags; member 1497 unsigned int open_flags, bool isdir); 1499 unsigned int open_flags, fl_owner_t id, bool isdir);
|
H A D | dir.c | 660 inarg.open_flags |= FUSE_OPEN_KILL_SUIDGID; in fuse_create_open() 694 ff->open_flags = outopenp->open_flags; in fuse_create_open() 720 else if (!(ff->open_flags & FOPEN_KEEP_CACHE)) in fuse_create_open() 1715 if (ff->open_flags & (FOPEN_STREAM | FOPEN_NONSEEKABLE)) in fuse_dir_open() 1717 if (!(ff->open_flags & FOPEN_KEEP_CACHE)) in fuse_dir_open()
|
/linux/tools/bpf/bpftool/ |
H A D | common.c | 994 opts_ro.open_flags = BPF_F_RDONLY; in map_fd_by_name() 1046 int map_parse_fds(int *argc, char ***argv, int **fds, __u32 open_flags) in map_parse_fds() argument 1050 assert((open_flags & ~BPF_F_RDONLY) == 0); in map_parse_fds() 1051 opts.open_flags = open_flags; in map_parse_fds() 1088 get_opts.file_flags = open_flags; in map_parse_fds() 1105 int map_parse_fd(int *argc, char ***argv, __u32 open_flags) in map_parse_fd() argument 1115 nb_fds = map_parse_fds(argc, argv, &fds, open_flags); in map_parse_fd() 1133 __u32 *info_len, __u32 open_flags) in map_parse_fd_and_info() argument 1138 fd = map_parse_fd(argc, argv, open_flags); in map_parse_fd_and_info() [all...] |
/linux/fs/ |
H A D | internal.h | 180 struct open_flags { struct 188 const struct open_flags *op); argument 190 const char *, const struct open_flags *); 192 extern int build_open_flags(const struct open_how *how, struct open_flags *op);
|
H A D | coredump.c | 882 int open_flags = O_CREAT | O_WRONLY | O_NOFOLLOW | O_LARGEFILE | O_EXCL; in coredump_file() local 928 file = file_open_root(&root, cn->corename, open_flags, 0600); in coredump_file() 931 file = filp_open(cn->corename, open_flags, 0600); in coredump_file()
|
H A D | namei.c | 3611 const struct open_flags *op, in lookup_open() 3761 struct file *file, const struct open_flags *op) in open_last_lookups() 3844 struct file *file, const struct open_flags *op) in do_open() 3992 const struct open_flags *op, in do_tmpfile() 4027 const struct open_flags *op, unsigned flags) in path_openat() 4066 const struct open_flags *op) in do_filp_open() 4083 const char *name, const struct open_flags *op) in do_file_open_root()
|
/linux/fs/nfs/ |
H A D | dir.c | 60 umode_t mode, int open_flags); 2031 static struct nfs_open_context *create_nfs_open_context(struct dentry *dentry, int open_flags, struct file *filp) in create_nfs_open_context() argument 2033 return alloc_nfs_open_context(dentry, flags_to_mode(open_flags), filp); in create_nfs_open_context() 2044 struct file *file, unsigned open_flags) in nfs_finish_open() argument 2060 struct file *file, unsigned open_flags, in nfs_atomic_open() argument 2080 err = nfs_check_flags(open_flags); in nfs_atomic_open() 2085 if ((open_flags & O_DIRECTORY)) { in nfs_atomic_open() 2101 if (open_flags & O_CREAT) { in nfs_atomic_open() 2110 if (open_flags & O_TRUNC) { in nfs_atomic_open() 2115 if (!(open_flags in nfs_atomic_open() 2260 nfs_atomic_open_v23(struct inode * dir,struct dentry * dentry,struct file * file,unsigned int open_flags,umode_t mode) nfs_atomic_open_v23() argument 2359 nfs_do_create(struct inode * dir,struct dentry * dentry,umode_t mode,int open_flags) nfs_do_create() argument [all...] |
H A D | nfs4proc.c | 1469 p->o_arg.open_flags = flags; in nfs4_opendata_alloc() 1974 int open_mode = opendata->o_arg.open_flags; in nfs4_try_open_cached() 2235 int openflags = opendata->o_arg.open_flags; in nfs4_open_recover_helper() 2551 data->o_arg.open_flags, claim)) in nfs4_open_prepare() 2581 if (data->o_arg.open_flags & O_EXCL) { in nfs4_open_prepare() 2791 !(o_arg->open_flags & O_CREAT)) in _nfs4_proc_open() 2798 if (o_arg->open_flags & O_CREAT) { in _nfs4_proc_open() 2799 if (o_arg->open_flags & O_EXCL) in _nfs4_proc_open() 2845 opendata->o_arg.open_flags = O_DIRECT; in _nfs4_open_expired() 3279 if ((opendata->o_arg.open_flags in _nfs4_do_open() 3911 nfs4_atomic_open(struct inode * dir,struct nfs_open_context * ctx,int open_flags,struct iattr * attr,int * opened) nfs4_atomic_open() argument [all...] |
/linux/tools/lib/bpf/ |
H A D | bpf.c | 1061 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_obj_get_next_id() 1098 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_prog_get_fd_by_id_opts() 1107 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_prog_get_fd_by_id_opts() 1121 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_map_get_fd_by_id_opts() 1130 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_map_get_fd_by_id_opts() 1153 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_btf_get_fd_by_id_opts() 1168 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_link_get_fd_by_id_opts() [all...] |
H A D | bpf.h | 494 __u32 open_flags; /* permissions requested for the operation on fd */ member
|
/linux/tools/testing/selftests/cachestat/ |
H A D | test_cachestat.c | 125 int open_flags, mode_t open_mode) in test_cachestat() argument 134 int fd = open(filename, open_flags, open_mode); in test_cachestat()
|
/linux/fs/ocfs2/dlmfs/ |
H A D | dlmfs.c | 100 static int dlmfs_decode_open_flags(int open_flags, in dlmfs_decode_open_flags() argument 104 if (open_flags & (O_WRONLY|O_RDWR)) in dlmfs_decode_open_flags() 110 if (open_flags & O_NONBLOCK) in dlmfs_decode_open_flags()
|
/linux/include/uapi/linux/ |
H A D | fuse.h | 791 uint32_t open_flags; /* FUSE_OPEN_... */ member 798 uint32_t open_flags; /* FUSE_OPEN_... */ member 803 uint32_t open_flags; member
|
H A D | io_uring.h | 62 __u32 open_flags; member
|
/linux/io_uring/ |
H A D | openclose.c | 91 u64 flags = READ_ONCE(sqe->open_flags); in io_openat_prep() 119 struct open_flags op; in io_openat2()
|
/linux/drivers/block/rnbd/ |
H A D | rnbd-srv.c | 684 blk_mode_t open_flags = BLK_OPEN_READ; in process_msg_open() local 691 open_flags |= BLK_OPEN_WRITE; in process_msg_open() 721 bdev_file = bdev_file_open_by_path(full_path, open_flags, NULL, NULL); in process_msg_open()
|
/linux/tools/include/uapi/linux/ |
H A D | io_uring.h | 62 __u32 open_flags; member
|
/linux/include/linux/ |
H A D | nfs_fs.h | 591 struct file *file, unsigned int open_flags,
|
H A D | nfs_xdr.h | 478 int open_flags; member 1839 int open_flags,
|
/linux/Documentation/filesystems/ |
H A D | fuse-passthrough.rst | 43 ``fuse_open_out::open_flags`` and provides the corresponding ``backing_id``
|
/linux/kernel/bpf/ |
H A D | syscall.c | 4704 #define BPF_MAP_GET_FD_BY_ID_LAST_FIELD open_flags 4714 attr->open_flags & ~BPF_OBJ_FLAG_MASK) in bpf_map_get_fd_by_id() 4720 f_flags = bpf_get_file_flag(attr->open_flags); in bpf_map_get_fd_by_id() 5334 if (attr->open_flags & ~BPF_F_TOKEN_FD) in bpf_btf_get_fd_by_id() 5337 if (attr->open_flags & BPF_F_TOKEN_FD) { in bpf_btf_get_fd_by_id()
|