Home
last modified time | relevance | path

Searched refs:open_flags (Results 1 – 25 of 34) sorted by relevance

12

/linux/tools/testing/selftests/bpf/
A Dtest_sysctl.c34 int open_flags; member
55 .open_flags = O_RDONLY,
66 .open_flags = O_RDONLY,
77 .open_flags = O_RDONLY,
98 .open_flags = O_RDONLY,
119 .open_flags = O_WRONLY,
142 .open_flags = O_WRONLY,
158 .open_flags = O_RDONLY,
179 .open_flags = O_RDONLY,
206 .open_flags = O_RDONLY,
[all …]
/linux/fs/fuse/
A Diomode.c177 (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()
247 ff->open_flags, err); in fuse_file_io_open()
A Dfile.c26 unsigned int open_flags, int opcode, in fuse_send_open() argument
39 inarg.open_flags |= FUSE_OPEN_KILL_SUIDGID; in fuse_send_open()
127 unsigned int open_flags, bool isdir) in fuse_file_open() argument
149 ff->open_flags = outargp->open_flags; in fuse_file_open()
165 ff->open_flags &= ~FOPEN_DIRECT_IO; in fuse_file_open()
209 if (ff->open_flags & FOPEN_STREAM) in fuse_finish_open()
211 else if (ff->open_flags & FOPEN_NONSEEKABLE) in fuse_finish_open()
279 else if (!(ff->open_flags & FOPEN_KEEP_CACHE)) in fuse_open()
1701 if (ff->open_flags & FOPEN_DIRECT_IO) in fuse_file_read_iter()
1722 if (ff->open_flags & FOPEN_DIRECT_IO) in fuse_file_write_iter()
[all …]
A Dreaddir.c119 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_emit()
367 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_readdir_uncached()
596 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_readdir()
A Dfuse_i.h239 u32 open_flags; member
1415 unsigned int open_flags, bool isdir);
1417 unsigned int open_flags, fl_owner_t id, bool isdir);
A Ddir.c658 inarg.open_flags |= FUSE_OPEN_KILL_SUIDGID; in fuse_create_open()
692 ff->open_flags = outopenp->open_flags; in fuse_create_open()
717 else if (!(ff->open_flags & FOPEN_KEEP_CACHE)) in fuse_create_open()
1681 if (ff->open_flags & (FOPEN_STREAM | FOPEN_NONSEEKABLE)) in fuse_dir_open()
/linux/fs/
A Dinternal.h175 struct open_flags { struct
183 const struct open_flags *op); argument
185 const char *, const struct open_flags *);
187 extern int build_open_flags(const struct open_how *how, struct open_flags *op);
A Dcoredump.c647 int open_flags = O_CREAT | O_WRONLY | O_NOFOLLOW | in do_coredump() local
696 open_flags, 0600); in do_coredump()
699 cprm.file = filp_open(cn.corename, open_flags, 0600); in do_coredump()
A Dopen.c1215 inline int build_open_flags(const struct open_how *how, struct open_flags *op) in build_open_flags()
1355 struct open_flags op; in file_open_name()
1390 struct open_flags op; in file_open_root()
1402 struct open_flags op; in do_sys_openat2()
A Dnamei.c3498 const struct open_flags *op, in lookup_open()
3648 struct file *file, const struct open_flags *op) in open_last_lookups()
3731 struct file *file, const struct open_flags *op) in do_open()
3879 const struct open_flags *op, in do_tmpfile()
3914 const struct open_flags *op, unsigned flags) in path_openat()
3953 const struct open_flags *op) in do_filp_open()
3970 const char *name, const struct open_flags *op) in do_file_open_root()
/linux/fs/nfs/
A Ddir.c60 umode_t mode, int open_flags);
2053 struct file *file, unsigned open_flags) in nfs_finish_open() argument
2089 err = nfs_check_flags(open_flags); in nfs_atomic_open()
2094 if ((open_flags & O_DIRECTORY)) { in nfs_atomic_open()
2110 if (open_flags & O_CREAT) { in nfs_atomic_open()
2119 if (open_flags & O_TRUNC) { in nfs_atomic_open()
2162 if (!(open_flags & O_NOFOLLOW)) in nfs_atomic_open()
2284 if (open_flags & O_CREAT) { in nfs_atomic_open_v23()
2370 umode_t mode, int open_flags) in nfs_do_create() argument
2375 open_flags |= O_CREAT; in nfs_do_create()
[all …]
/linux/tools/lib/bpf/
A Dbpf.c1015 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_obj_get_next_id()
1052 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_prog_get_fd_by_id_opts()
1061 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_prog_get_fd_by_id_opts()
1075 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_map_get_fd_by_id_opts()
1084 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_map_get_fd_by_id_opts()
1098 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_btf_get_fd_by_id_opts()
1107 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_btf_get_fd_by_id_opts()
1121 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_link_get_fd_by_id_opts()
1130 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_link_get_fd_by_id_opts()
A Dbpf.h486 __u32 open_flags; /* permissions requested for the operation on fd */ member
489 #define bpf_get_fd_by_id_opts__last_field open_flags
/linux/tools/testing/selftests/cachestat/
A Dtest_cachestat.c120 int open_flags, mode_t open_mode) in test_cachestat() argument
129 int fd = open(filename, open_flags, open_mode); in test_cachestat()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dlibbpf_get_fd_by_id_opts.c20 .open_flags = BPF_F_RDONLY, in test_libbpf_get_fd_by_id_opts()
/linux/fs/ocfs2/dlmfs/
A Ddlmfs.c99 static int dlmfs_decode_open_flags(int open_flags, in dlmfs_decode_open_flags() argument
103 if (open_flags & (O_WRONLY|O_RDWR)) in dlmfs_decode_open_flags()
109 if (open_flags & O_NONBLOCK) in dlmfs_decode_open_flags()
/linux/include/uapi/linux/
A Dfuse.h771 uint32_t open_flags; /* FUSE_OPEN_... */ member
778 uint32_t open_flags; /* FUSE_OPEN_... */ member
783 uint32_t open_flags; member
A Dio_uring.h62 __u32 open_flags; member
/linux/io_uring/
A Dopenclose.c89 u64 flags = READ_ONCE(sqe->open_flags); in io_openat_prep()
117 struct open_flags op; in io_openat2()
/linux/drivers/block/rnbd/
A Drnbd-srv.c689 blk_mode_t open_flags = BLK_OPEN_READ; in process_msg_open() local
696 open_flags |= BLK_OPEN_WRITE; in process_msg_open()
726 bdev_file = bdev_file_open_by_path(full_path, open_flags, NULL, NULL); in process_msg_open()
/linux/tools/include/uapi/linux/
A Dio_uring.h62 __u32 open_flags; member
/linux/tools/perf/util/
A Devsel.c2083 evsel->open_flags = PERF_FLAG_FD_CLOEXEC; in __evsel__prepare_open()
2085 evsel->open_flags |= PERF_FLAG_PID_CGROUP; in __evsel__prepare_open()
2107 evsel->open_flags &= ~(unsigned long)PERF_FLAG_FD_CLOEXEC; in evsel__disable_missing_features()
2205 } else if (!perf_missing_features.cloexec && (evsel->open_flags & PERF_FLAG_FD_CLOEXEC)) { in evsel__detect_missing_features()
2359 pid, perf_cpu_map__cpu(cpus, idx).cpu, group_fd, evsel->open_flags); in evsel__open_cpu()
2363 group_fd, evsel->open_flags); in evsel__open_cpu()
2380 fd, group_fd, evsel->open_flags); in evsel__open_cpu()
A Devsel.h183 unsigned long open_flags; member
/linux/include/linux/
A Dnfs_fs.h565 struct file *file, unsigned int open_flags,
A Dnfs_xdr.h475 int open_flags; member
1839 int open_flags,

Completed in 95 milliseconds

12