Home
last modified time | relevance | path

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

123

/openbmc/linux/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 …]
/openbmc/qemu/block/
H A Dfile-posix.c141 int open_flags; member
180 int open_flags; member
363 if ((bs->open_flags & BDRV_O_NOCACHE) != 0 && !dio_byte_aligned(s->fd)) { in raw_needs_alignment()
512 static void raw_parse_flags(int bdrv_flags, int *open_flags, bool has_writers) in raw_parse_flags() argument
515 assert(open_flags != NULL); in raw_parse_flags()
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()
529 *open_flags |= O_RDONLY; in raw_parse_flags()
535 *open_flags |= O_DIRECT; in raw_parse_flags()
[all …]
H A Dgluster.c749 static void qemu_gluster_parse_flags(int bdrv_flags, int *open_flags) in qemu_gluster_parse_flags() argument
751 assert(open_flags != NULL); in qemu_gluster_parse_flags()
753 *open_flags |= O_BINARY; in qemu_gluster_parse_flags()
756 *open_flags |= O_RDWR; in qemu_gluster_parse_flags()
758 *open_flags |= O_RDONLY; in qemu_gluster_parse_flags()
762 *open_flags |= O_DIRECT; in qemu_gluster_parse_flags()
797 int open_flags = 0; in qemu_gluster_open() local
853 qemu_gluster_parse_flags(bdrv_flags, &open_flags); in qemu_gluster_open()
855 s->fd = glfs_open(s->glfs, gconf->path, open_flags); in qemu_gluster_open()
863 open_flags = (open_flags & ~O_RDWR) | O_RDONLY; in qemu_gluster_open()
[all …]
H A Dnfs.c416 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 Dcopy-on-read.c122 if (!(bs->open_flags & BDRV_O_INACTIVE)) { in cor_child_perm()
H A Dparallels-ext.c178 assert(!(bs->open_flags & BDRV_O_RDWR)); in parallels_load_bitmap()
/openbmc/linux/fs/
H A Dinternal.h162 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 Dcoredump.c651 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 Dopen.c1219 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/tests/unit/
H A Dtest-block-iothread.c254 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 Dbpf.c990 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 Dbpf.h466 __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 Dblock.c280 return !(bs->open_flags & BDRV_O_RDWR); in bdrv_is_read_only()
297 if (!read_only && !(bs->open_flags & BDRV_O_ALLOW_RDWR) && in bdrv_can_set_read_only()
324 if (!(bs->open_flags & BDRV_O_RDWR)) { in bdrv_apply_auto_read_only()
327 if (!(bs->open_flags & BDRV_O_AUTO_RDONLY)) { in bdrv_apply_auto_read_only()
336 bs->open_flags &= ~BDRV_O_RDWR; in bdrv_apply_auto_read_only()
1101 int open_flags, in bdrv_parse_detect_zeroes() argument
1117 !(open_flags & BDRV_O_UNMAP)) in bdrv_parse_detect_zeroes()
1225 assert(bs->open_flags & BDRV_O_INACTIVE); in bdrv_child_cb_inactivate()
1274 parent->open_flags &= ~BDRV_O_NO_BACKING; in bdrv_backing_attach()
1543 int open_flags = flags; in bdrv_open_flags() local
[all …]
/openbmc/linux/fs/nfs/
H A Ddir.c2038 static struct nfs_open_context *create_nfs_open_context(struct dentry *dentry, int open_flags, stru… in create_nfs_open_context() argument
2040 return alloc_nfs_open_context(dentry, flags_to_mode(open_flags), filp); in create_nfs_open_context()
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()
2133 ctx = create_nfs_open_context(dentry, open_flags, file); in nfs_atomic_open()
[all …]
/openbmc/linux/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()
/openbmc/linux/fs/fuse/
H A Dfile.c24 unsigned int open_flags, int opcode, in fuse_send_open() argument
31 inarg.flags = open_flags & ~(O_CREAT | O_EXCL | O_NOCTTY); in fuse_send_open()
37 inarg.open_flags |= FUSE_OPEN_KILL_SUIDGID; in fuse_send_open()
129 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()
146 err = fuse_send_open(fm, nodeid, open_flags, opcode, &outarg); in fuse_file_open()
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()
[all …]
H 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()
H A Dfuse_i.h217 u32 open_flags; member
1354 unsigned int open_flags, bool isdir);
1356 unsigned int open_flags, fl_owner_t id, bool isdir);
/openbmc/linux/io_uring/
H A Dopenclose.c84 u64 flags = READ_ONCE(sqe->open_flags); in io_openat_prep()
112 struct open_flags op; in io_openat2()
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/include/uapi/linux/
H A Dfuse.h751 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 Dfuse.h767 uint32_t open_flags; /* FUSE_OPEN_... */ member
774 uint32_t open_flags; /* FUSE_OPEN_... */ member
779 uint32_t open_flags; member
/openbmc/linux/drivers/block/rnbd/
H A Drnbd-srv.c681 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 DCVE-2019-13636.patch73 @@ -579,10 +579,13 @@ create_file (char const *file, int open_flags, mode_t mode,

123