/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | test_sysctl.c | 34 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 …]
|
/openbmc/linux/fs/ |
H A D | internal.h | 162 struct open_flags { struct 170 const struct open_flags *op); argument 172 const char *, const struct open_flags *); 174 extern int build_open_flags(const struct open_how *how, struct open_flags *op);
|
H A D | coredump.c | 651 int open_flags = O_CREAT | O_WRONLY | O_NOFOLLOW | in do_coredump() local 702 open_flags, 0600); in do_coredump() 705 cprm.file = filp_open(cn.corename, open_flags, 0600); in do_coredump()
|
H A D | open.c | 1219 inline int build_open_flags(const struct open_how *how, struct open_flags *op) in build_open_flags() 1359 struct open_flags op; in file_open_name() 1394 struct open_flags op; in file_open_root() 1406 struct open_flags op; in do_sys_openat2()
|
/openbmc/qemu/block/ |
H A D | gluster.c | 754 assert(open_flags != NULL); in qemu_gluster_parse_flags() 756 *open_flags |= O_BINARY; in qemu_gluster_parse_flags() 759 *open_flags |= O_RDWR; in qemu_gluster_parse_flags() 761 *open_flags |= O_RDONLY; in qemu_gluster_parse_flags() 765 *open_flags |= O_DIRECT; in qemu_gluster_parse_flags() 800 int open_flags = 0; in qemu_gluster_open() local 854 qemu_gluster_parse_flags(bdrv_flags, &open_flags); in qemu_gluster_open() 856 s->fd = glfs_open(s->glfs, gconf->path, open_flags); in qemu_gluster_open() 864 open_flags = (open_flags & ~O_RDWR) | O_RDONLY; in qemu_gluster_open() 902 int open_flags = 0; in qemu_gluster_reopen_prepare() local [all …]
|
H A D | file-posix.c | 141 int open_flags; member 180 int open_flags; member 517 *open_flags |= O_BINARY; in raw_parse_flags() 518 *open_flags &= ~O_ACCMODE; in raw_parse_flags() 527 *open_flags |= O_RDWR; in raw_parse_flags() 687 s->open_flags = open_flags; in raw_open_common() 1058 *open_flags = 0; in raw_reconfigure_getfd() 1074 if (*open_flags == s->open_flags) { in raw_reconfigure_getfd() 1079 if ((*open_flags & ~fcntl_flags) == (s->open_flags & ~fcntl_flags)) { in raw_reconfigure_getfd() 1171 s->open_flags = rs->open_flags; in raw_reopen_commit() [all …]
|
H A D | nfs.c | 416 int flags, int open_flags, Error **errp) in nfs_client_open() argument 466 if (open_flags & BDRV_O_NOCACHE) { in nfs_client_open() 487 if (open_flags & BDRV_O_NOCACHE) { in nfs_client_open() 591 int flags, int open_flags, Error **errp) in nfs_client_open_qdict() argument 602 ret = nfs_client_open(client, opts, flags, open_flags, errp); in nfs_client_open_qdict() 617 bs->open_flags, errp); in nfs_file_open() 737 !(bs->open_flags & BDRV_O_NOCACHE)) { in nfs_co_get_allocated_file_size()
|
H A D | copy-on-read.c | 122 if (!(bs->open_flags & BDRV_O_INACTIVE)) { in cor_child_perm()
|
H A D | parallels-ext.c | 178 assert(!(bs->open_flags & BDRV_O_RDWR)); in parallels_load_bitmap()
|
/openbmc/qemu/tests/unit/ |
H A D | test-block-iothread.c | 254 c->bs->open_flags |= BDRV_O_UNMAP; in test_sync_op_pdiscard() 259 c->bs->open_flags &= ~BDRV_O_UNMAP; in test_sync_op_pdiscard() 294 c->bs->open_flags &= ~BDRV_O_RDWR; in test_sync_op_truncate() 299 c->bs->open_flags |= BDRV_O_RDWR; in test_sync_op_truncate() 348 c->bs->open_flags &= ~BDRV_O_RDWR; in test_sync_op_flush() 353 c->bs->open_flags |= BDRV_O_RDWR; in test_sync_op_flush() 366 bs->open_flags &= ~BDRV_O_RDWR; in test_sync_op_blk_flush() 371 bs->open_flags |= BDRV_O_RDWR; in test_sync_op_blk_flush()
|
/openbmc/linux/tools/lib/bpf/ |
H A D | bpf.c | 990 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_obj_get_next_id() 1027 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_prog_get_fd_by_id_opts() 1036 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_prog_get_fd_by_id_opts() 1050 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_map_get_fd_by_id_opts() 1059 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_map_get_fd_by_id_opts() 1073 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_btf_get_fd_by_id_opts() 1082 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_btf_get_fd_by_id_opts() 1096 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); in bpf_link_get_fd_by_id_opts() 1105 attr.open_flags = OPTS_GET(opts, open_flags, 0); in bpf_link_get_fd_by_id_opts()
|
H A D | bpf.h | 466 __u32 open_flags; /* permissions requested for the operation on fd */ member 469 #define bpf_get_fd_by_id_opts__last_field open_flags
|
/openbmc/qemu/ |
H A D | block.c | 324 if (!(bs->open_flags & BDRV_O_RDWR)) { in bdrv_apply_auto_read_only() 336 bs->open_flags &= ~BDRV_O_RDWR; in bdrv_apply_auto_read_only() 1117 !(open_flags & BDRV_O_UNMAP)) in bdrv_parse_detect_zeroes() 1543 int open_flags = flags; in bdrv_open_flags() local 1552 return open_flags; in bdrv_open_flags() 1750 bs->open_flags = flags; in bdrv_new_open_driver_opts() 1857 int ret, open_flags; in bdrv_open_common() local 1981 open_flags = bdrv_open_flags(bs, bs->open_flags); in bdrv_open_common() 2170 return bs->open_flags; in bdrv_reopen_get_flags() 4060 bs->open_flags = flags; in bdrv_open_inherit() [all …]
|
/openbmc/linux/tools/testing/selftests/cachestat/ |
H A D | test_cachestat.c | 120 int open_flags, mode_t open_mode) in test_cachestat() argument 129 int fd = open(filename, open_flags, open_mode); in test_cachestat()
|
/openbmc/linux/fs/nfs/ |
H A D | dir.c | 2051 struct file *file, unsigned open_flags) in nfs_finish_open() argument 2067 struct file *file, unsigned open_flags, in nfs_atomic_open() argument 2087 err = nfs_check_flags(open_flags); in nfs_atomic_open() 2092 if ((open_flags & O_DIRECTORY)) { in nfs_atomic_open() 2108 if (open_flags & O_CREAT) { in nfs_atomic_open() 2117 if (open_flags & O_TRUNC) { in nfs_atomic_open() 2122 if (!(open_flags & O_CREAT) && !d_in_lookup(dentry)) { in nfs_atomic_open() 2138 trace_nfs_atomic_open_enter(dir, ctx, open_flags); in nfs_atomic_open() 2160 if (!(open_flags & O_NOFOLLOW)) in nfs_atomic_open() 2331 int open_flags = excl ? O_CREAT | O_EXCL : O_CREAT; in nfs_create() local [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | libbpf_get_fd_by_id_opts.c | 20 .open_flags = BPF_F_RDONLY, in test_libbpf_get_fd_by_id_opts()
|
/openbmc/linux/io_uring/ |
H A D | openclose.c | 84 u64 flags = READ_ONCE(sqe->open_flags); in io_openat_prep() 112 struct open_flags op; in io_openat2()
|
/openbmc/linux/fs/fuse/ |
H A D | file.c | 24 unsigned int open_flags, int opcode, in fuse_send_open() argument 37 inarg.open_flags |= FUSE_OPEN_KILL_SUIDGID; in fuse_send_open() 129 unsigned int open_flags, bool isdir) in fuse_file_open() argument 149 ff->open_flags = outarg.open_flags; in fuse_file_open() 163 ff->open_flags &= ~FOPEN_DIRECT_IO; in fuse_file_open() 202 if (ff->open_flags & FOPEN_STREAM) in fuse_finish_open() 204 else if (ff->open_flags & FOPEN_NONSEEKABLE) in fuse_finish_open() 263 else if (!(ff->open_flags & FOPEN_KEEP_CACHE)) in fuse_open_common() 1633 if (!(ff->open_flags & FOPEN_DIRECT_IO)) in fuse_file_read_iter() 1651 if (!(ff->open_flags & FOPEN_DIRECT_IO)) in fuse_file_write_iter() [all …]
|
H A D | readdir.c | 119 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()
|
H A D | fuse_i.h | 217 u32 open_flags; member 1354 unsigned int open_flags, bool isdir); 1356 unsigned int open_flags, fl_owner_t id, bool isdir);
|
/openbmc/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()
|
/openbmc/linux/include/uapi/linux/ |
H A D | fuse.h | 751 uint32_t open_flags; /* FUSE_OPEN_... */ member 758 uint32_t open_flags; /* FUSE_OPEN_... */ member 763 uint32_t open_flags; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | fuse.h | 762 uint32_t open_flags; /* FUSE_OPEN_... */ member 769 uint32_t open_flags; /* FUSE_OPEN_... */ member 774 uint32_t open_flags; member
|
/openbmc/linux/drivers/block/rnbd/ |
H A D | rnbd-srv.c | 681 blk_mode_t open_flags = BLK_OPEN_READ; in process_msg_open() local 688 open_flags |= BLK_OPEN_WRITE; in process_msg_open() 718 bdev = blkdev_get_by_path(full_path, open_flags, NULL, NULL); in process_msg_open()
|
/openbmc/openbmc/poky/meta/recipes-devtools/patch/patch/ |
H A D | CVE-2019-13636.patch | 73 @@ -579,10 +579,13 @@ create_file (char const *file, int open_flags, mode_t mode,
|