Home
last modified time | relevance | path

Searched refs:O_DIRECT (Results 1 – 25 of 49) sorted by relevance

12

/linux/tools/include/uapi/asm-generic/
H A Dfcntl.h
/linux/tools/testing/selftests/mm/
H A Dhugetlb_dio.c141 fd = open("/tmp", O_TMPFILE | O_RDWR | O_DIRECT, 0664);
/linux/tools/perf/trace/beauty/
H A Dopen_flags.c8 #ifndef O_DIRECT
9 #define O_DIRECT 00040000
7 #define O_DIRECT global() macro
/linux/rust/kernel/fs/
H A Dfile.rs40 pub const O_DIRECT: u32 = bindings::O_DIRECT; constant
/linux/Documentation/filesystems/
H A Docfs2.rst106 coherency=full (*) Disallow concurrent O_DIRECT writes, cluster inode
109 for O_DIRECT writes.
110 coherency=buffered Allow concurrent O_DIRECT writes without EX lock among
/linux/Documentation/mm/
H A Dpage_cache.rst8 interact with filesystems. It can be bypassed (e.g. with O_DIRECT),
/linux/fs/9p/
H A Dfid.h54 (s_flags & V9FS_DIRECT_IO) || (f_flags & O_DIRECT)) { in v9fs_fid_add_modes()
/linux/tools/testing/selftests/ublk/
H A Dcommon.c28 fd = open(file, O_RDWR | (i < nr_direct ? O_DIRECT : 0)); in backing_file_tgt_init()
/linux/include/trace/misc/
H A Dfs.h35 { O_DIRECT, "O_DIRECT" }, \
/linux/security/integrity/ima/
H A Dima_api.c321 /* Possibly temporary failure due to type of read (eg. O_DIRECT) */ in ima_collect_measurement()
326 if (file->f_flags & O_DIRECT) in ima_collect_measurement()
391 if ((!result || result == -EEXIST) && !(file->f_flags & O_DIRECT)) { in ima_store_measurement()
/linux/fs/nfs/
H A Dfile.c51 if ((flags & (O_APPEND | O_DIRECT)) == (O_APPEND | O_DIRECT)) in nfs_check_flags()
103 * idea of what the file length is), or O_DIRECT (in which case we
110 if (filp->f_flags & O_DIRECT) in nfs_revalidate_file_size()
H A Dnfs4file.c95 filp->f_flags |= O_DIRECT; in nfs4_file_open()
/linux/Documentation/filesystems/nfs/
H A Dnfsd-io-modes.rst115 But NFSD DIRECT does handle misaligned IO in terms of O_DIRECT as best
128 misaligned segments and O_DIRECT is used for the middle DIO-aligned
/linux/fs/overlayfs/
H A Dfile.c63 #define OVL_SETFL_MASK (O_APPEND | O_NONBLOCK | O_NDELAY | O_DIRECT)
75 if ((flags & O_DIRECT) && !(file->f_mode & FMODE_CAN_ODIRECT)) in ovl_change_flags()
/linux/fs/cachefiles/
H A Dnamei.c429 O_RDWR | O_LARGEFILE | O_DIRECT, in cachefiles_create_tmpfile()
524 file = kernel_file_open(&path, O_RDWR | O_LARGEFILE | O_DIRECT, cache->cache_cred); in cachefiles_open_file()
/linux/fs/
H A Dpipe.c450 return (file->f_flags & O_DIRECT) != 0; in anon_pipe_read()
985 O_WRONLY | (flags & (O_NONBLOCK | O_DIRECT)), in get_pipe_inode()
1027 if (flags & ~(O_CLOEXEC | O_NONBLOCK | O_DIRECT | O_NOTIFICATION_PIPE)) in create_pipe_files()
H A Dfcntl.c37 #define SETFL_MASK (O_APPEND | O_NONBLOCK | O_NDELAY | O_DIRECT | O_NOATIME)
63 (arg & O_DIRECT) && in setfl()
/linux/tools/testing/selftests/openat2/
H A Dopenat2_test.c
/linux/tools/testing/selftests/filesystems/openat2/
H A Dopenat2_test.c195 .how.flags = O_PATH | O_DIRECT, .err = -EINVAL }, in TEST_F()
/linux/drivers/accel/habanalabs/common/
H A Dhldio.c83 if (!(f->filp->f_flags & O_DIRECT)) { in hl_dio_fd_register()
/linux/drivers/nvme/target/
H A Dio-cmd-file.c39 flags |= O_DIRECT; in nvmet_file_ns_enable()
/linux/io_uring/
H A Dopenclose.c338 if (p->flags & ~(O_CLOEXEC | O_NONBLOCK | O_DIRECT | O_NOTIFICATION_PIPE)) in io_pipe_prep()
/linux/fs/smb/client/
H A Ddir.c633 if ((file->f_flags & O_DIRECT) && (sbflags & CIFS_MOUNT_STRICT_IO)) {
1173 if ((file->f_flags & O_DIRECT) && (sbflags & CIFS_MOUNT_STRICT_IO)) {
H A Dfile.c913 if (flags & O_DIRECT) in _cifsFileInfo_put()
1038 *? by this client. Flags O_APPEND, O_DIRECT, O_DIRECTORY, in cifs_do_truncate()
1547 if ((file->f_flags & O_DIRECT) && (sbflags & CIFS_MOUNT_STRICT_IO)) { in cifs_reopen_persistent_handles()
1670 if (!(file->f_flags & O_DIRECT)) in cifs_find_fid_lock_conflict()
3175 return (oflags & (O_SYNC | O_DIRECT)) == (cflags & (O_SYNC | O_DIRECT)); in cifs_strict_readv()
3278 (open_file->f_flags & O_DIRECT)) in is_size_safe_to_change()
3685 if (iocb->ki_filp->f_flags & O_DIRECT) {
/linux/kernel/trace/
H A Dtrace_syscalls.c172 { O_DIRECT, "O_DIRECT" }, in sys_enter_openat_print()
423 "{ 0x%x, \"O_DIRECT\" }, ", O_DIRECT); in sys_enter_openat_print_fmt()

12