/linux-master/tools/testing/selftests/bpf/ |
H A D | test_sysctl.c | 34 int open_flags; member in struct:sysctl_test 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 [all...] |
/linux-master/fs/fuse/ |
H A D | iomode.c | 157 (ff->open_flags & ~FOPEN_PASSTHROUGH_MASK)) 195 if (fuse_inode_backing(fi) && !(ff->open_flags & FOPEN_PASSTHROUGH)) 201 if (!(ff->open_flags & FOPEN_DIRECT_IO)) 202 ff->open_flags &= ~FOPEN_PARALLEL_DIRECT_WRITES; 212 if ((ff->open_flags & FOPEN_DIRECT_IO) && 213 !(ff->open_flags & FOPEN_PASSTHROUGH)) 216 if (ff->open_flags & FOPEN_PASSTHROUGH) 226 pr_debug("failed to open file in requested io mode (open_flags=0x%x, err=%i).\n", 227 ff->open_flags, err);
|
H A D | file.c | 26 unsigned int open_flags, int opcode, 33 inarg.flags = open_flags & ~(O_CREAT | O_EXCL | O_NOCTTY); 39 inarg.open_flags |= FUSE_OPEN_KILL_SUIDGID; 127 unsigned int open_flags, bool isdir) 140 ff->open_flags = FOPEN_KEEP_CACHE | (isdir ? FOPEN_CACHE_DIR : 0); 146 err = fuse_send_open(fm, nodeid, open_flags, opcode, outargp); 149 ff->open_flags = outargp->open_flags; 165 ff->open_flags &= ~FOPEN_DIRECT_IO; 209 if (ff->open_flags 25 fuse_send_open(struct fuse_mount *fm, u64 nodeid, unsigned int open_flags, int opcode, struct fuse_open_out *outargp) argument 126 fuse_file_open(struct fuse_mount *fm, u64 nodeid, unsigned int open_flags, bool isdir) argument 336 fuse_file_release(struct inode *inode, struct fuse_file *ff, unsigned int open_flags, fl_owner_t id, bool isdir) argument [all...] |
H A D | readdir.c | 119 if (ff->open_flags & FOPEN_CACHE_DIR) 367 if (ff->open_flags & FOPEN_CACHE_DIR) 596 if (ff->open_flags & FOPEN_CACHE_DIR)
|
H A D | fuse_i.h | 239 u32 open_flags; member in struct:fuse_file 1406 unsigned int open_flags, bool isdir); 1408 unsigned int open_flags, fl_owner_t id, bool isdir);
|
H A D | dir.c | 653 inarg.open_flags |= FUSE_OPEN_KILL_SUIDGID; 687 ff->open_flags = outopenp->open_flags; 712 else if (!(ff->open_flags & FOPEN_KEEP_CACHE)) 1660 if (ff->open_flags & (FOPEN_STREAM | FOPEN_NONSEEKABLE))
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | libbpf_get_fd_by_id_opts.c | 20 .open_flags = BPF_F_RDONLY,
|
/linux-master/fs/ |
H A D | internal.h | 171 struct open_flags { struct 179 const struct open_flags *op); 181 const char *, const struct open_flags *); 183 extern int build_open_flags(const struct open_how *how, struct open_flags *op);
|
H A D | open.c | 1206 inline int build_open_flags(const struct open_how *how, struct open_flags *op) 1214 "struct open_flags doesn't yet handle flags > 32 bits"); 1219 * open_flags like O_CLOEXEC. 1346 struct open_flags op; 1381 struct open_flags op; 1393 struct open_flags op;
|
H A D | coredump.c | 651 int open_flags = O_CREAT | O_WRONLY | O_NOFOLLOW | local 702 open_flags, 0600); 705 cprm.file = filp_open(cn.corename, open_flags, 0600);
|
H A D | namei.c | 3403 const struct open_flags *op, 3514 struct file *file, const struct open_flags *op) 3599 struct file *file, const struct open_flags *op) 3745 const struct open_flags *op, 3780 const struct open_flags *op, unsigned flags) 3819 const struct open_flags *op) 3836 const char *name, const struct open_flags *op)
|
/linux-master/tools/testing/selftests/cachestat/ |
H A D | test_cachestat.c | 119 int open_flags, mode_t open_mode) 128 int fd = open(filename, open_flags, open_mode); 117 test_cachestat(const char *filename, bool write_random, bool create, bool test_fsync, unsigned long num_pages, int open_flags, mode_t open_mode) argument
|
/linux-master/tools/lib/bpf/ |
H A D | bpf.c | 1013 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); 1050 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); 1059 attr.open_flags = OPTS_GET(opts, open_flags, 0); 1073 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); 1082 attr.open_flags = OPTS_GET(opts, open_flags, 0); 1096 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); 1105 attr.open_flags = OPTS_GET(opts, open_flags, [all...] |
H A D | bpf.h | 486 __u32 open_flags; /* permissions requested for the operation on fd */ member in struct:bpf_get_fd_by_id_opts 489 #define bpf_get_fd_by_id_opts__last_field open_flags
|
/linux-master/fs/ocfs2/dlmfs/ |
H A D | dlmfs.c | 99 static int dlmfs_decode_open_flags(int open_flags, argument 103 if (open_flags & (O_WRONLY|O_RDWR)) 109 if (open_flags & O_NONBLOCK)
|
/linux-master/include/uapi/linux/ |
H A D | fuse.h | 766 uint32_t open_flags; /* FUSE_OPEN_... */ member in struct:fuse_open_in 773 uint32_t open_flags; /* FUSE_OPEN_... */ member in struct:fuse_create_in 778 uint32_t open_flags; member in struct:fuse_open_out
|
H A D | io_uring.h | 62 __u32 open_flags; member in union:io_uring_sqe::__anon2788
|
/linux-master/io_uring/ |
H A D | openclose.c | 89 u64 flags = READ_ONCE(sqe->open_flags); 117 struct open_flags op;
|
/linux-master/fs/nfs/ |
H A D | dir.c | 2015 static struct nfs_open_context *create_nfs_open_context(struct dentry *dentry, int open_flags, struct file *filp) argument 2017 return alloc_nfs_open_context(dentry, flags_to_mode(open_flags), filp); 2028 struct file *file, unsigned open_flags) 2044 struct file *file, unsigned open_flags, 2064 err = nfs_check_flags(open_flags); 2069 if ((open_flags & O_DIRECTORY)) { 2085 if (open_flags & O_CREAT) { 2094 if (open_flags & O_TRUNC) { 2099 if (!(open_flags & O_CREAT) && !d_in_lookup(dentry)) { 2110 ctx = create_nfs_open_context(dentry, open_flags, fil 2026 nfs_finish_open(struct nfs_open_context *ctx, struct dentry *dentry, struct file *file, unsigned open_flags) argument 2043 nfs_atomic_open(struct inode *dir, struct dentry *dentry, struct file *file, unsigned open_flags, umode_t mode) argument 2310 int open_flags = excl ? O_CREAT | O_EXCL : O_CREAT; local [all...] |
H A D | nfs4proc.c | 1410 p->o_arg.open_flags = flags; 1914 int open_mode = opendata->o_arg.open_flags; 2165 int openflags = opendata->o_arg.open_flags; 2469 data->o_arg.open_flags, claim)) 2499 if (data->o_arg.open_flags & O_EXCL) { 2707 !(o_arg->open_flags & O_CREAT)) 2714 if (o_arg->open_flags & O_CREAT) { 2715 if (o_arg->open_flags & O_EXCL) 2761 opendata->o_arg.open_flags = O_DIRECT; 3198 if ((opendata->o_arg.open_flags 3825 nfs4_atomic_open(struct inode *dir, struct nfs_open_context *ctx, int open_flags, struct iattr *attr, int *opened) argument [all...] |
/linux-master/tools/include/uapi/linux/ |
H A D | io_uring.h | 62 __u32 open_flags; member in union:io_uring_sqe::__anon2590
|
/linux-master/drivers/block/rnbd/ |
H A D | rnbd-srv.c | 682 blk_mode_t open_flags = BLK_OPEN_READ; local 689 open_flags |= BLK_OPEN_WRITE; 719 bdev_file = bdev_file_open_by_path(full_path, open_flags, NULL, NULL);
|
/linux-master/tools/perf/util/ |
H A D | evsel.c | 1826 evsel->open_flags = PERF_FLAG_FD_CLOEXEC; 1828 evsel->open_flags |= PERF_FLAG_PID_CGROUP; 1850 evsel->open_flags &= ~(unsigned long)PERF_FLAG_FD_CLOEXEC; 1948 } else if (!perf_missing_features.cloexec && (evsel->open_flags & PERF_FLAG_FD_CLOEXEC)) { 2052 pid, perf_cpu_map__cpu(cpus, idx).cpu, group_fd, evsel->open_flags); 2056 group_fd, evsel->open_flags); 2073 fd, group_fd, evsel->open_flags);
|
H A D | evsel.h | 168 unsigned long open_flags; member in struct:evsel
|
/linux-master/include/linux/ |
H A D | nfs_xdr.h | 459 int open_flags; member in struct:nfs_openargs 1807 int open_flags,
|