Home
last modified time | relevance | path

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

12

/linux-6.15/tools/testing/selftests/bpf/
H 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-6.15/fs/fuse/
H 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()
H 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()
1781 if (ff->open_flags & FOPEN_DIRECT_IO) in fuse_file_read_iter()
1802 if (ff->open_flags & FOPEN_DIRECT_IO) in fuse_file_write_iter()
[all …]
H A Dreaddir.c119 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_emit()
369 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_readdir_uncached()
599 if (ff->open_flags & FOPEN_CACHE_DIR) in fuse_readdir()
H A Dfuse_i.h259 u32 open_flags; member
1504 unsigned int open_flags, bool isdir);
1506 unsigned int open_flags, fl_owner_t id, bool isdir);
H A Ddir.c659 inarg.open_flags |= FUSE_OPEN_KILL_SUIDGID; in fuse_create_open()
693 ff->open_flags = outopenp->open_flags; in fuse_create_open()
718 else if (!(ff->open_flags & FOPEN_KEEP_CACHE)) in fuse_create_open()
1708 if (ff->open_flags & (FOPEN_STREAM | FOPEN_NONSEEKABLE)) in fuse_dir_open()
1710 if (!(ff->open_flags & FOPEN_KEEP_CACHE)) in fuse_dir_open()
/linux-6.15/fs/
H A Dinternal.h178 struct open_flags { struct
186 const struct open_flags *op); argument
188 const char *, const struct open_flags *);
190 extern int build_open_flags(const struct open_how *how, struct open_flags *op);
H A Dcoredump.c648 int open_flags = O_CREAT | O_WRONLY | O_NOFOLLOW | in do_coredump() local
697 open_flags, 0600); in do_coredump()
700 cprm.file = filp_open(cn.corename, open_flags, 0600); in do_coredump()
H A Dopen.c1230 inline int build_open_flags(const struct open_how *how, struct open_flags *op) in build_open_flags()
1368 struct open_flags op; in file_open_name()
1403 struct open_flags op; in file_open_root()
1415 struct open_flags op; in do_sys_openat2()
H A Dnamei.c3604 const struct open_flags *op, in lookup_open()
3754 struct file *file, const struct open_flags *op) in open_last_lookups()
3837 struct file *file, const struct open_flags *op) in do_open()
3985 const struct open_flags *op, in do_tmpfile()
4020 const struct open_flags *op, unsigned flags) in path_openat()
4059 const struct open_flags *op) in do_filp_open()
4076 const char *name, const struct open_flags *op) in do_file_open_root()
/linux-6.15/fs/nfs/
H A Ddir.c60 umode_t mode, int open_flags);
2046 struct file *file, unsigned open_flags) in nfs_finish_open() argument
2082 err = nfs_check_flags(open_flags); in nfs_atomic_open()
2087 if ((open_flags & O_DIRECTORY)) { in nfs_atomic_open()
2103 if (open_flags & O_CREAT) { in nfs_atomic_open()
2112 if (open_flags & O_TRUNC) { in nfs_atomic_open()
2155 if (!(open_flags & O_NOFOLLOW)) in nfs_atomic_open()
2274 if (open_flags & O_CREAT) { in nfs_atomic_open_v23()
2361 umode_t mode, int open_flags) in nfs_do_create() argument
2366 open_flags |= O_CREAT; in nfs_do_create()
[all …]
/linux-6.15/tools/lib/bpf/
H A Dbpf.c1017 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_obj_get_next_id()
1054 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_prog_get_fd_by_id_opts()
1063 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_prog_get_fd_by_id_opts()
1077 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_map_get_fd_by_id_opts()
1086 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_map_get_fd_by_id_opts()
1109 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_btf_get_fd_by_id_opts()
1124 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_link_get_fd_by_id_opts()
1133 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_link_get_fd_by_id_opts()
H A Dbpf.h489 __u32 open_flags; /* permissions requested for the operation on fd */ member
/linux-6.15/tools/testing/selftests/cachestat/
H 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-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dlibbpf_get_fd_by_id_opts.c20 .open_flags = BPF_F_RDONLY, in test_libbpf_get_fd_by_id_opts()
/linux-6.15/fs/ocfs2/dlmfs/
H A Ddlmfs.c100 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-6.15/io_uring/
H A Dopenclose.c89 u64 flags = READ_ONCE(sqe->open_flags); in io_openat_prep()
117 struct open_flags op; in io_openat2()
/linux-6.15/include/uapi/linux/
H A Dfuse.h787 uint32_t open_flags; /* FUSE_OPEN_... */ member
794 uint32_t open_flags; /* FUSE_OPEN_... */ member
799 uint32_t open_flags; member
H A Dio_uring.h62 __u32 open_flags; member
/linux-6.15/drivers/block/rnbd/
H 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-6.15/tools/include/uapi/linux/
H A Dio_uring.h62 __u32 open_flags; member
/linux-6.15/tools/perf/util/
H A Devsel.c2117 evsel->open_flags = PERF_FLAG_FD_CLOEXEC; in __evsel__prepare_open()
2119 evsel->open_flags |= PERF_FLAG_PID_CGROUP; in __evsel__prepare_open()
2144 evsel->open_flags &= ~(unsigned long)PERF_FLAG_FD_CLOEXEC; in evsel__disable_missing_features()
2537 if ((evsel->open_flags & PERF_FLAG_FD_CLOEXEC) && in evsel__detect_missing_features()
2635 pid, cpu.cpu, group_fd, evsel->open_flags); in evsel__open_cpu()
2638 group_fd, evsel->open_flags); in evsel__open_cpu()
2654 fd, group_fd, evsel->open_flags); in evsel__open_cpu()
H A Devsel.h171 unsigned long open_flags; member
/linux-6.15/include/linux/
H A Dnfs_fs.h583 struct file *file, unsigned int open_flags,
H A Dnfs_xdr.h475 int open_flags; member
1836 int open_flags,

12