Home
last modified time | relevance | path

Searched refs:O_ACCMODE (Results 1 – 25 of 34) sorted by relevance

12

/linux/fs/coda/
H A Dcoda_linux.c48 if ((flags & O_ACCMODE) == O_RDONLY) in coda_flags_to_cflags()
51 if ((flags & O_ACCMODE) == O_RDWR) in coda_flags_to_cflags()
54 if ((flags & O_ACCMODE) == O_WRONLY) in coda_flags_to_cflags()
/linux/fs/ceph/
H A Dutil.c64 switch (flags & O_ACCMODE) { in ceph_flags_to_mode()
72 case O_ACCMODE: /* this is what the VFS does */ in ceph_flags_to_mode()
/linux/drivers/s390/char/
H A Dhmcdrv_dev.c79 if ((fp->f_flags & O_ACCMODE) == O_RDONLY) in hmcdrv_dev_open()
176 if (((fp->f_flags & O_ACCMODE) == O_WRONLY) || in hmcdrv_dev_read()
H A Dvmur.c703 accmode = file->f_flags & O_ACCMODE; in ur_open()
790 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in ur_llseek()
/linux/include/uapi/linux/
H A Ddma-heap.h19 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
/linux/tools/testing/selftests/drivers/s390x/uvdevice/
H A Dtest_uvdevice.c40 self->uv_fd = open(UV_PATH, O_ACCMODE); in FIXTURE_SETUP()
162 self->uv_fd = open(UV_PATH, O_ACCMODE); in FIXTURE_SETUP()
262 int fd = open(UV_PATH, O_ACCMODE); in main()
/linux/rust/kernel/fs/
H A Dfile.rs96 pub const O_ACCMODE: u32 = bindings::O_ACCMODE; constant
/linux/tools/include/uapi/asm-generic/
H A Dfcntl.h
/linux/tools/perf/trace/beauty/
H A Dopen_flags.c32 if ((flags & O_ACCMODE) == O_RDONLY) in open__scnprintf_flags()
/linux/sound/core/seq/oss/
H A Dseq_oss_init.c280 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in translate_mode()
282 if ((file->f_flags & O_ACCMODE) != O_WRONLY) in translate_mode()
/linux/fs/ecryptfs/
H A Dkthread.c138 if ((flags & O_ACCMODE) == O_RDONLY) { in ecryptfs_privileged_open()
/linux/security/integrity/ima/
H A Dima_fs.c715 if ((filp->f_flags & O_ACCMODE) != O_RDONLY)
738 if ((file->f_flags & O_ACCMODE) == O_RDONLY)
/linux/drivers/most/
H A Dmost_cdev.c128 ((filp->f_flags & O_ACCMODE) != O_RDONLY)) || in comp_open()
130 ((filp->f_flags & O_ACCMODE) != O_WRONLY))) { in comp_open()
/linux/drivers/misc/genwqe/
H A Dcard_dev.c1097 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1133 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1156 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Ddebugfs.h20 if ((file->f_flags & O_ACCMODE) == O_RDWR) \
/linux/sound/core/
H A Dinfo.c241 mode = file->f_flags & O_ACCMODE; in snd_info_entry_open()
269 entry->c.ops->release(entry, file->f_flags & O_ACCMODE, in snd_info_entry_release()
H A Dcompress_offload.c84 if ((f->f_flags & O_ACCMODE) == O_WRONLY) in snd_compr_open()
86 else if ((f->f_flags & O_ACCMODE) == O_RDONLY) in snd_compr_open()
88 else if ((f->f_flags & O_ACCMODE) == O_RDWR) in snd_compr_open()
/linux/drivers/media/dvb-core/
H A Ddvbdev.c140 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_generic_open()
162 if ((file->f_flags & O_ACCMODE) == O_RDONLY) in dvb_generic_release()
/linux/fs/nfs/
H A Dinternal.h50 if ((flags & O_ACCMODE) != O_WRONLY) in flags_to_mode()
52 if ((flags & O_ACCMODE) != O_RDONLY) in flags_to_mode()
/linux/ipc/
H A Dmqueue.c864 static const int oflag2acc[O_ACCMODE] = { MAY_READ, MAY_WRITE, in prepare_open()
881 if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY)) in prepare_open()
883 acc = oflag2acc[oflag & O_ACCMODE]; in prepare_open()
/linux/fs/overlayfs/
H A Dutil.c663 if (flags & ~(O_ACCMODE | O_LARGEFILE)) in ovl_path_open()
666 switch (flags & O_ACCMODE) { in ovl_path_open()
/linux/drivers/acpi/
H A Dacpi_dbg.c476 if ((file->f_flags & O_ACCMODE) != O_WRONLY) { in acpi_aml_open()
/linux/tools/objtool/
H A Delf.c1229 if ((flags & O_ACCMODE) == O_RDONLY) in elf_open_read()
1231 else if ((flags & O_ACCMODE) == O_RDWR) in elf_open_read()
/linux/fs/notify/fanotify/
H A Dfanotify_user.c206 O_ACCMODE | O_APPEND | O_NONBLOCK | \
1638 switch (event_f_flags & O_ACCMODE) { in SYSCALL_DEFINE2()
/linux/block/
H A Dfops.c645 if ((file->f_flags & O_ACCMODE) == (O_RDWR | O_WRONLY)) in file_to_blk_mode()

12