| /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 = O_RDONLY, [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() 214 if (fuse_inode_backing(fi) && !(ff->open_flags & FOPEN_PASSTHROUGH)) in fuse_file_io_open() 220 if (!(ff->open_flags & FOPEN_DIRECT_IO)) in fuse_file_io_open() 221 ff->open_flags &= ~FOPEN_PARALLEL_DIRECT_WRITES; in fuse_file_io_open() 231 if ((ff->open_flags & FOPEN_DIRECT_IO) && in fuse_file_io_open() 232 !(ff->open_flags & FOPEN_PASSTHROUGH)) in fuse_file_io_open() 235 if (ff->open_flags & FOPEN_PASSTHROUGH) in fuse_file_io_open() 246 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 & FOPEN_STREAM) in fuse_finish_open() 212 else if (ff->open_flags & FOPEN_NONSEEKABLE) in fuse_finish_open() [all …]
|
| H A D | readdir.c | 119 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_emit() 369 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_readdir_uncached() 597 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_readdir()
|
| H A D | fuse_i.h | 262 u32 open_flags; member 1528 unsigned int open_flags, bool isdir); 1530 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() 1709 if (ff->open_flags & (FOPEN_STREAM | FOPEN_NONSEEKABLE)) in fuse_dir_open() 1711 if (!(ff->open_flags & FOPEN_KEEP_CACHE)) in fuse_dir_open()
|
| /linux/tools/bpf/bpftool/ |
| H A D | common.c | 996 opts_ro.open_flags = BPF_F_RDONLY; in map_fd_by_name() 1048 int map_parse_fds(int *argc, char ***argv, int **fds, __u32 open_flags) in map_parse_fds() argument 1052 assert((open_flags & ~BPF_F_RDONLY) == 0); in map_parse_fds() 1053 opts.open_flags = open_flags; in map_parse_fds() 1090 get_opts.file_flags = open_flags; in map_parse_fds() 1107 int map_parse_fd(int *argc, char ***argv, __u32 open_flags) in map_parse_fd() argument 1117 nb_fds = map_parse_fds(argc, argv, &fds, open_flags); in map_parse_fd() 1135 __u32 *info_len, __u32 open_flags) in map_parse_fd_and_info() argument 1140 fd = map_parse_fd(argc, argv, open_flags); in map_parse_fd_and_info()
|
| H A D | main.h | 183 int map_parse_fd(int *argc, char ***argv, __u32 open_flags); 184 int map_parse_fds(int *argc, char ***argv, int **fds, __u32 open_flags); 186 __u32 *info_len, __u32 open_flags);
|
| H A D | map.c | 342 __u32 *flags, __u32 **value_fd, __u32 open_flags) in parse_elem() argument 365 flags, value_fd, open_flags); in parse_elem() 391 fd = map_parse_fd(&argc, &argv, open_flags); in parse_elem() 427 flags, NULL, open_flags); in parse_elem() 443 value_size, NULL, value_fd, open_flags); in parse_elem() 682 opts.open_flags = BPF_F_RDONLY; in do_show()
|
| /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 | open.c | 1238 inline int build_open_flags(const struct open_how *how, struct open_flags *op) in build_open_flags() 1376 struct open_flags op; in file_open_name() 1411 struct open_flags op; in file_open_root() 1423 struct open_flags op; in do_sys_openat2()
|
| 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()
|
| /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, stru… 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 & O_CREAT) && !d_in_lookup(dentry)) { in nfs_atomic_open() [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | bpf.c | 1063 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_obj_get_next_id() 1100 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_prog_get_fd_by_id_opts() 1109 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_prog_get_fd_by_id_opts() 1123 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_map_get_fd_by_id_opts() 1132 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_map_get_fd_by_id_opts() 1155 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_btf_get_fd_by_id_opts() 1170 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_link_get_fd_by_id_opts() 1179 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_link_get_fd_by_id_opts()
|
| H A D | bpf.h | 497 __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/kernel/ |
| H A D | acct.c | 219 const int open_flags = O_WRONLY|O_APPEND|O_LARGEFILE; in acct_on() local 231 original_file = file_open_name(pathname, open_flags, 0); in acct_on() 242 file = dentry_open(&internal, open_flags, current_cred()); in acct_on()
|
| /linux/include/uapi/linux/ |
| H A D | fuse.h | 797 uint32_t open_flags; /* FUSE_OPEN_... */ member 804 uint32_t open_flags; /* FUSE_OPEN_... */ member 809 uint32_t open_flags; member
|
| H A D | io_uring.h | 62 __u32 open_flags; member
|
| /linux/io_uring/ |
| H A D | openclose.c | 92 u64 flags = READ_ONCE(sqe->open_flags); in io_openat_prep() 120 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/tools/perf/util/ |
| H A D | evsel.c | 2192 evsel->open_flags = PERF_FLAG_FD_CLOEXEC; in __evsel__prepare_open() 2194 evsel->open_flags |= PERF_FLAG_PID_CGROUP; in __evsel__prepare_open() 2219 evsel->open_flags &= ~(unsigned long)PERF_FLAG_FD_CLOEXEC; in evsel__disable_missing_features() 2612 if ((evsel->open_flags & PERF_FLAG_FD_CLOEXEC) && in evsel__detect_missing_features() 2720 pid, cpu.cpu, group_fd, evsel->open_flags); in evsel__open_cpu() 2723 group_fd, evsel->open_flags); in evsel__open_cpu() 2739 fd, group_fd, evsel->open_flags); in evsel__open_cpu()
|