O_RDWR 61 Documentation/usb/usbdevfs-drop-permissions.c fd = open(argv[1], O_RDWR); O_RDWR 101 arch/alpha/boot/tools/mkbb.c dev = open(argv[1], O_RDWR); O_RDWR 179 arch/arm/vdso/vdsomunge.c outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); O_RDWR 115 arch/mips/vdso/genvdso.c fd = open(path, O_RDWR); O_RDWR 125 arch/powerpc/boot/addnote.c fd = open(av[1], O_RDWR); O_RDWR 87 arch/powerpc/boot/mktree.c if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { O_RDWR 315 arch/powerpc/kvm/book3s_64_vio.c stt, O_RDWR | O_CLOEXEC); O_RDWR 194 arch/sparc/boot/piggyback.c if ((image = open(argv[2], O_RDWR)) < 0) O_RDWR 27 arch/um/drivers/null.c fd = open(DEV_NULL, O_RDWR); O_RDWR 94 arch/um/drivers/pty.c master = open(line, O_RDWR); O_RDWR 140 arch/um/drivers/slip_user.c err = open(ptsname(mfd), O_RDWR, 0); O_RDWR 46 arch/um/drivers/tty.c mode = O_RDWR; O_RDWR 129 arch/um/drivers/vector_user.c fd = open(PATH_NET_TUN, O_RDWR); O_RDWR 181 arch/um/os-Linux/file.c f = O_RDWR; O_RDWR 110 arch/um/os-Linux/mem.c fd = open(tempdir, O_CLOEXEC | O_RDWR | O_EXCL | O_TMPFILE, 0700); O_RDWR 359 arch/um/os-Linux/start_up.c fd = open(file, O_RDWR, 0); O_RDWR 32 arch/um/os-Linux/tty.c fd = open("/dev/ptmx", O_RDWR); O_RDWR 230 arch/um/os-Linux/umid.c fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644); O_RDWR 168 arch/xtensa/platforms/iss/simdisk.c dev->fd = simc_open(filename, O_RDWR, 0); O_RDWR 474 drivers/block/zram/zram_drv.c backing_dev = filp_open(file_name, O_RDWR|O_LARGEFILE, 0); O_RDWR 550 drivers/char/tpm/tpm_vtpm_proxy.c fd = get_unused_fd_flags(O_RDWR); O_RDWR 557 drivers/char/tpm/tpm_vtpm_proxy.c O_RDWR); O_RDWR 188 drivers/dma-buf/udmabuf.c exp_info.flags = O_RDWR; O_RDWR 496 drivers/gpu/drm/armada/armada_gem.c exp_info.flags = O_RDWR; O_RDWR 1523 drivers/ide/ide-tape.c (filp->f_flags & O_ACCMODE) == O_RDWR) { O_RDWR 157 drivers/media/dvb-core/dmxdev.c else if ((file->f_flags & O_ACCMODE) == O_RDWR) { O_RDWR 398 drivers/misc/cxl/api.c flags = O_RDWR | O_CLOEXEC; O_RDWR 1218 drivers/misc/fastrpc.c exp_info.flags = O_RDWR; O_RDWR 533 drivers/mtd/nand/raw/nandsim.c cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600); O_RDWR 32 drivers/nvme/target/io-cmd-file.c int flags = O_RDWR | O_LARGEFILE; O_RDWR 702 drivers/s390/char/vmur.c if (accmode == O_RDWR) O_RDWR 131 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH, O_RDWR 1213 drivers/scsi/cxlflash/ocxl_hw.c flags = O_RDWR | O_CLOEXEC; O_RDWR 916 drivers/scsi/sg.c read_only = (O_RDWR != (filp->f_flags & O_ACCMODE)); O_RDWR 1202 drivers/scsi/st.c (st_flags & O_ACCMODE) == O_RDWR)) { O_RDWR 397 drivers/staging/android/ion/ion.c exp_info.flags = O_RDWR; O_RDWR 649 drivers/staging/axis-fifo/axis-fifo.c ((f->f_flags & O_ACCMODE) == O_RDWR)) { O_RDWR 659 drivers/staging/axis-fifo/axis-fifo.c ((f->f_flags & O_ACCMODE) == O_RDWR)) { O_RDWR 45 drivers/staging/greybus/Documentation/firmware/authenticate.c fd = open(capdev, O_RDWR); O_RDWR 193 drivers/staging/greybus/Documentation/firmware/firmware.c fd = open(fwdev, O_RDWR); O_RDWR 312 drivers/staging/greybus/tools/loopback_test.c fd = open_sysfs(sys_pfx, node, O_RDWR); O_RDWR 885 drivers/target/target_core_alua.c struct file *file = filp_open(path, O_RDWR | O_CREAT | O_TRUNC, 0600); O_RDWR 105 drivers/target/target_core_file.c flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC; O_RDWR 840 drivers/target/target_core_file.c int ret, flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC; O_RDWR 1968 drivers/target/target_core_pr.c int flags = O_RDWR | O_CREAT | O_TRUNC; O_RDWR 167 drivers/tee/tee_shm.c exp_info.flags = O_RDWR; O_RDWR 299 drivers/tee/tee_shm.c exp_info.flags = O_RDWR; O_RDWR 277 drivers/tty/serial/kgdb_nmi.c if (!ret && (mode == O_RDONLY || mode == O_RDWR)) O_RDWR 288 drivers/tty/serial/kgdb_nmi.c if (mode == O_RDONLY || mode == O_RDWR) O_RDWR 193 drivers/usb/gadget/function/storage_common.c filp = filp_open(filename, O_RDWR | O_LARGEFILE, 0); O_RDWR 211 drivers/usb/gadget/function/u_uac1_legacy.c snd->filp = filp_open(fn_cntl, O_RDWR, 0); O_RDWR 1465 drivers/vfio/vfio.c device, O_RDWR); O_RDWR 411 drivers/xen/gntdev-dmabuf.c exp_info.flags = O_RDWR; O_RDWR 259 fs/9p/fid.c err = p9_client_open(fid, O_RDWR); O_RDWR 175 fs/9p/vfs_inode.c case O_RDWR: O_RDWR 248 fs/aio.c O_RDWR, &aio_ring_fops); O_RDWR 1990 fs/btrfs/volumes.c filp = filp_open(path_name, O_RDWR, 0); O_RDWR 922 fs/cachefiles/rdwr.c file = dentry_open(&path, O_RDWR | O_LARGEFILE, cache->cache_cred); O_RDWR 31 fs/ceph/file.c case O_RDWR: O_RDWR 189 fs/ceph/file.c if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC)) O_RDWR 310 fs/ceph/file.c flags = O_RDWR; O_RDWR 585 fs/cifs/dir.c unsigned oflags = O_EXCL | O_CREAT | O_RDWR; O_RDWR 54 fs/cifs/file.c else if ((flags & O_ACCMODE) == O_RDWR) { O_RDWR 74 fs/cifs/file.c else if ((flags & O_ACCMODE) == O_RDWR) O_RDWR 51 fs/coda/coda_linux.c if ((flags & O_ACCMODE) == O_RDWR) O_RDWR 698 fs/coredump.c int open_flags = O_CREAT | O_RDWR | O_NOFOLLOW | O_RDWR 63 fs/ecryptfs/kthread.c (O_RDWR | O_LARGEFILE), current_cred()); O_RDWR 133 fs/ecryptfs/kthread.c flags |= IS_RDONLY(d_inode(lower_dentry)) ? O_RDONLY : O_RDWR; O_RDWR 429 fs/eventfd.c O_RDWR | (flags & EFD_SHARED_FCNTL_FLAGS)); O_RDWR 2068 fs/eventpoll.c fd = get_unused_fd_flags(O_RDWR | (flags & O_CLOEXEC)); O_RDWR 2074 fs/eventpoll.c O_RDWR | (flags & O_CLOEXEC)); O_RDWR 92 fs/fsopen.c O_RDWR | o_flags); O_RDWR 79 fs/hostfs/hostfs_user.c mode = O_RDWR; O_RDWR 188 fs/hostfs/hostfs_user.c fd = open64(name, O_CREAT | O_RDWR, mode); O_RDWR 1413 fs/hugetlbfs/inode.c file = alloc_file_pseudo(inode, mnt, name, O_RDWR, O_RDWR 3860 fs/io_uring.c ret = get_unused_fd_flags(O_RDWR | O_CLOEXEC); O_RDWR 3865 fs/io_uring.c O_RDWR | O_CLOEXEC); O_RDWR 3185 fs/namei.c } else if ((open_flag & (O_TRUNC|O_WRONLY|O_RDWR)) && O_RDWR 3303 fs/namei.c if (open_flag & (O_CREAT | O_TRUNC | O_WRONLY | O_RDWR)) { O_RDWR 332 fs/nfs/nfstrace.h TRACE_DEFINE_ENUM(O_RDWR); O_RDWR 350 fs/nfs/nfstrace.h { O_RDWR, "O_RDWR" }, \ O_RDWR 452 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_RDWR); O_RDWR 477 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_RDWR); O_RDWR 499 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_RDWR); O_RDWR 602 fs/nfsd/nfs4state.c swap(f2, fp->fi_fds[O_RDWR]); O_RDWR 1189 fs/nfsd/nfs4state.c return O_RDWR; O_RDWR 744 fs/nfsd/vfs.c flags = O_RDWR|O_LARGEFILE; O_RDWR 791 fs/notify/fanotify/fanotify_user.c case O_RDWR: O_RDWR 808 fs/notify/fanotify/fanotify_user.c f_flags = O_RDWR | FMODE_NONOTIFY; O_RDWR 106 fs/ocfs2/dlmfs/dlmfs.c if (open_flags & (O_WRONLY|O_RDWR)) O_RDWR 289 fs/signalfd.c O_RDWR | (flags & (O_CLOEXEC | O_NONBLOCK))); O_RDWR 428 fs/timerfd.c O_RDWR | (flags & TFD_SHARED_FCNTL_FLAGS)); O_RDWR 1026 fs/userfaultfd.c O_RDWR | (new->flags & UFFD_SHARED_FCNTL_FLAGS)); O_RDWR 1977 fs/userfaultfd.c O_RDWR | (flags & UFFD_SHARED_FCNTL_FLAGS)); O_RDWR 9 include/linux/fcntl.h (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \ O_RDWR 707 include/uapi/drm/drm.h #define DRM_RDWR O_RDWR O_RDWR 515 init/do_mounts.c fd = ksys_open("/dev/root", O_RDWR | O_NDELAY, 0); O_RDWR 521 init/do_mounts.c fd = ksys_open("/dev/console", O_RDWR, 0); O_RDWR 52 init/do_mounts_initrd.c ksys_open("/dev/console", O_RDWR, 0); O_RDWR 110 init/do_mounts_initrd.c int fd = ksys_open("/dev/root.old", O_RDWR, 0); O_RDWR 189 init/do_mounts_rd.c out_fd = ksys_open("/dev/ram", O_RDWR, 0); O_RDWR 1196 init/main.c if (ksys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0) O_RDWR 809 ipc/mqueue.c if ((oflag & O_ACCMODE) == (O_RDWR | O_WRONLY)) O_RDWR 1468 ipc/shm.c f_flags = O_RDWR; O_RDWR 459 kernel/bpf/syscall.c return O_RDWR; O_RDWR 1446 kernel/bpf/syscall.c O_RDWR | O_CLOEXEC); O_RDWR 10914 kernel/events/core.c int f_flags = O_RDWR; O_RDWR 2038 kernel/fork.c retval = get_unused_fd_flags(O_RDWR | O_CLOEXEC); O_RDWR 2045 kernel/fork.c O_RDWR | O_CLOEXEC); O_RDWR 475 kernel/pid.c O_RDWR | O_CLOEXEC); O_RDWR 59 kernel/power/user.c if ((filp->f_flags & O_ACCMODE) == O_RDWR) { O_RDWR 1232 kernel/seccomp.c filter, O_RDWR); O_RDWR 1295 kernel/sysctl_binary.c flags = O_RDWR; O_RDWR 4121 mm/shmem.c res = alloc_file_pseudo(inode, mnt, name, O_RDWR, O_RDWR 2537 mm/swapfile.c victim = file_open_name(pathname, O_RDWR|O_LARGEFILE, 0); O_RDWR 3138 mm/swapfile.c swap_file = file_open_name(name, O_RDWR|O_LARGEFILE, 0); O_RDWR 73 net/ceph/ceph_fs.c case O_RDWR: O_RDWR 398 net/socket.c O_RDWR | (flags & O_NONBLOCK), O_RDWR 53 samples/auxdisplay/cfag12864b-example.c cfag12864b_fd = open(path, O_RDWR); O_RDWR 57 samples/hidraw/hid-example.c fd = open(device, O_RDWR|O_NONBLOCK); O_RDWR 120 samples/mei/mei-amt-version.c me->fd = open("/dev/mei0", O_RDWR); O_RDWR 226 samples/mic/mpssd/mpssd.c fd = open("/dev/net/tun", O_RDWR); O_RDWR 750 samples/mic/mpssd/mpssd.c pty_fd = posix_openpt(O_RDWR); O_RDWR 919 samples/mic/mpssd/mpssd.c fd = open(path, O_RDWR); O_RDWR 1009 samples/mic/mpssd/mpssd.c mic->mic_virtblk.backend = open(mic->mic_virtblk.backend_file, O_RDWR); O_RDWR 71 samples/mic/mpssd/sysfs.c fd = open(filename, O_RDWR); O_RDWR 416 samples/uhid/uhid-example.c fd = open(path, O_RDWR | O_CLOEXEC); O_RDWR 207 scripts/insert-sys-cert.c fd = open(file_name, O_RDWR); O_RDWR 438 scripts/mod/sumversion.c fd = open(filename, O_RDWR); O_RDWR 93 scripts/sortextable.c fd_map = open(fname, O_RDWR); O_RDWR 692 security/apparmor/file.c devnull = dentry_open(&aa_null, O_RDWR, cred); O_RDWR 2488 security/selinux/hooks.c devnull = dentry_open(&selinux_null, O_RDWR, cred); O_RDWR 248 sound/core/info.c if (((mode == O_RDONLY || mode == O_RDWR) && !entry->c.ops->read) || O_RDWR 249 sound/core/info.c ((mode == O_WRONLY || mode == O_RDWR) && !entry->c.ops->write)) { O_RDWR 931 tools/firewire/nosy-dump.c fd = open(option_nosy_device, O_RDWR); O_RDWR 75 tools/hv/hv_fcopy_daemon.c O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); O_RDWR 173 tools/hv/hv_fcopy_daemon.c fcopy_fd = open("/dev/vmbus/hv_fcopy", O_RDWR); O_RDWR 250 tools/hv/hv_kvp_daemon.c fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */); O_RDWR 1403 tools/hv/hv_kvp_daemon.c kvp_fd = open("/dev/vmbus/hv_kvp", O_RDWR | O_CLOEXEC); O_RDWR 235 tools/hv/hv_vss_daemon.c vss_fd = open("/dev/vmbus/hv_vss", O_RDWR); O_RDWR 707 tools/include/uapi/drm/drm.h #define DRM_RDWR O_RDWR O_RDWR 56 tools/laptop/freefall/freefall.c int fd = open(path, O_RDWR); O_RDWR 37 tools/leds/uledmon.c fd = open("/dev/uleds", O_RDWR); O_RDWR 24 tools/lib/subcmd/run-command.c int fd = open("/dev/null", O_RDWR); O_RDWR 2442 tools/objtool/check.c file.elf = elf_read(objname, orc ? O_RDWR : O_RDONLY); O_RDWR 429 tools/objtool/elf.c else if ((flags & O_ACCMODE) == O_RDWR) O_RDWR 44 tools/pci/pcitest.c fd = open(test->device, O_RDWR); O_RDWR 284 tools/perf/jvmti/jvmti_agent.c fd = open(dump_path, O_CREAT|O_TRUNC|O_RDWR, 0666); O_RDWR 128 tools/perf/tests/bp_signal.c fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); O_RDWR 103 tools/perf/tests/bp_signal_overflow.c fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); O_RDWR 45 tools/perf/tests/bpf.c fds[1] = open("/dev/null", O_RDWR); O_RDWR 57 tools/perf/util/data.c ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); O_RDWR 266 tools/perf/util/data.c fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, O_RDWR 542 tools/perf/util/genelf.c fd = open(options.output, O_CREAT|O_TRUNC|O_RDWR, 0666); O_RDWR 83 tools/perf/util/probe-file.c ret = open(buf, O_RDWR | O_APPEND, 0); O_RDWR 461 tools/perf/util/probe-file.c fd = open(cpath, O_CREAT | O_RDWR, 0644); O_RDWR 522 tools/perf/util/trace-event-info.c temp_fd = open(tdata->temp_file, O_RDWR); O_RDWR 422 tools/power/acpi/tools/acpidbg/acpidbg.c fd = open(acpi_aml_file_path, O_RDWR | O_NONBLOCK); O_RDWR 362 tools/power/x86/intel-speed-select/isst-config.c fd = open(pathname, O_RDWR); O_RDWR 464 tools/power/x86/intel-speed-select/isst-config.c fd = open(pathname, O_RDWR); O_RDWR 559 tools/power/x86/intel-speed-select/isst-config.c fd = open(pathname, O_RDWR); O_RDWR 587 tools/power/x86/intel-speed-select/isst-config.c fd = open(pathname, O_RDWR); O_RDWR 621 tools/power/x86/intel-speed-select/isst-config.c fd = open(pathname, O_RDWR); O_RDWR 646 tools/power/x86/intel-speed-select/isst-config.c fd = open(pathname, O_RDWR); O_RDWR 655 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c fd = open(pathname, O_RDWR); O_RDWR 143 tools/spi/spidev_fdx.c fd = open(name, O_RDWR); O_RDWR 408 tools/spi/spidev_test.c fd = open(device, O_RDWR); O_RDWR 46 tools/testing/selftests/android/ion/ionmap_test.c fd = open(name, O_RDWR); O_RDWR 62 tools/testing/selftests/android/ion/ionutils.c ionfd = open(ION_DEVICE, O_RDWR); O_RDWR 73 tools/testing/selftests/bpf/cgroup_helpers.c cfd = open(path, O_RDWR); O_RDWR 396 tools/testing/selftests/bpf/prog_tests/flow_dissector.c fd = open("/dev/net/tun", O_RDWR); O_RDWR 68 tools/testing/selftests/bpf/test_lirc_mode2_user.c lircfd = open(argv[1], O_RDWR | O_NONBLOCK); O_RDWR 182 tools/testing/selftests/bpf/test_select_reuseport.c fd = open(sysctl, O_RDWR); O_RDWR 140 tools/testing/selftests/breakpoints/step_after_suspend_test.c power_state_fd = open("/sys/power/state", O_RDWR); O_RDWR 337 tools/testing/selftests/cgroup/cgroup_util.c return open(".", O_TMPFILE | O_RDWR | O_EXCL); O_RDWR 30 tools/testing/selftests/drivers/dma-buf/udmabuf.c devfd = open("/dev/udmabuf", O_RDWR); O_RDWR 26 tools/testing/selftests/efivarfs/create-read.c fd = open(path, O_RDWR | O_CREAT, 0600); O_RDWR 141 tools/testing/selftests/exec/execveat.c int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); O_RDWR 384 tools/testing/selftests/exec/execveat.c fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); O_RDWR 105 tools/testing/selftests/filesystems/devpts_pts.c master = open(ptmx, O_RDWR | O_NOCTTY | O_CLOEXEC); O_RDWR 123 tools/testing/selftests/filesystems/devpts_pts.c slave = ioctl(master, TIOCGPTPEER, O_RDWR | O_NOCTTY | O_CLOEXEC); O_RDWR 30 tools/testing/selftests/ia64/aliasing-test.c fd = open(path, O_RDWR); O_RDWR 124 tools/testing/selftests/ia64/aliasing-test.c fd = open(path, O_RDWR); O_RDWR 87 tools/testing/selftests/ir/ir_loopback.c fd = open(buf, O_RDWR | O_NONBLOCK); O_RDWR 42 tools/testing/selftests/kcmp/kcmp_test.c fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); O_RDWR 91 tools/testing/selftests/kcmp/kcmp_test.c fd2 = open(kpath, O_RDWR, 0644); O_RDWR 255 tools/testing/selftests/kvm/dirty_log_test.c vm = _vm_create(mode, DEFAULT_GUEST_PHY_PAGES + extra_pg_pages, O_RDWR); O_RDWR 30 tools/testing/selftests/kvm/kvm_create_max_vcpus.c vm = vm_create(VM_MODE_DEFAULT, DEFAULT_GUEST_PHY_PAGES, O_RDWR); O_RDWR 230 tools/testing/selftests/kvm/lib/aarch64/processor.c vm = vm_create(VM_MODE_DEFAULT, DEFAULT_GUEST_PHY_PAGES + extra_pg_pages, O_RDWR); O_RDWR 226 tools/testing/selftests/kvm/lib/s390x/processor.c DEFAULT_GUEST_PHY_PAGES + extra_pg_pages, O_RDWR); O_RDWR 826 tools/testing/selftests/kvm/lib/x86_64/processor.c O_RDWR); O_RDWR 135 tools/testing/selftests/kvm/x86_64/evmcs_test.c kvm_vm_restart(vm, O_RDWR); O_RDWR 60 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c kvm = open("/dev/kvm", O_RDWR); O_RDWR 146 tools/testing/selftests/kvm/x86_64/smm_test.c kvm_vm_restart(vm, O_RDWR); O_RDWR 178 tools/testing/selftests/kvm/x86_64/state_test.c kvm_vm_restart(vm, O_RDWR); O_RDWR 70 tools/testing/selftests/media_tests/media_device_open.c fd = open(media_device, O_RDWR); O_RDWR 79 tools/testing/selftests/media_tests/media_device_test.c fd = open(media_device, O_RDWR); O_RDWR 73 tools/testing/selftests/media_tests/video_device_test.c fd = open(video_dev, O_RDWR); O_RDWR 64 tools/testing/selftests/memfd/memfd_test.c fd = open(path, O_RDWR); O_RDWR 450 tools/testing/selftests/memfd/memfd_test.c O_RDWR | O_CREAT | O_TRUNC, O_RDWR 468 tools/testing/selftests/memfd/memfd_test.c O_RDWR | O_CREAT | O_TRUNC, O_RDWR 937 tools/testing/selftests/memfd/memfd_test.c fd2 = mfd_assert_open(fd, O_RDWR, 0); O_RDWR 954 tools/testing/selftests/memfd/memfd_test.c fd2 = mfd_assert_open(fd, O_RDWR, 0); O_RDWR 202 tools/testing/selftests/mqueue/mq_open_tests.c int flags = O_RDWR | O_EXCL | O_CREAT; O_RDWR 224 tools/testing/selftests/mqueue/mq_open_tests.c int flags = O_RDWR | O_EXCL | O_CREAT; O_RDWR 291 tools/testing/selftests/mqueue/mq_perf_tests.c int flags = O_RDWR | O_EXCL | O_CREAT | O_NONBLOCK; O_RDWR 428 tools/testing/selftests/net/reuseport_bpf.c fd = open("/proc/sys/net/ipv4/tcp_fastopen", O_RDWR); O_RDWR 324 tools/testing/selftests/net/tcp_fastopen_backup_key.c proc_fd = open(PROC_FASTOPEN_KEY, O_RDWR); O_RDWR 947 tools/testing/selftests/net/tls.c fd = open("/tmp/", O_TMPFILE | O_RDWR, 0600); O_RDWR 198 tools/testing/selftests/powerpc/alignment/alignment_handler.c fd = open("/dev/fb0", O_RDWR); O_RDWR 277 tools/testing/selftests/powerpc/alignment/alignment_handler.c fd = open("/dev/fb0", O_RDWR); O_RDWR 103 tools/testing/selftests/powerpc/dscr/dscr.h fd = open(DSCR_DEFAULT, O_RDWR); O_RDWR 18 tools/testing/selftests/powerpc/dscr/dscr_sysfs_test.c fd = open(file, O_RDWR); O_RDWR 197 tools/testing/selftests/powerpc/mm/subpage_prot.c fd = open(file_name, O_RDWR); O_RDWR 249 tools/testing/selftests/ptp/testptp.c fd = open(device, O_RDWR); O_RDWR 691 tools/testing/selftests/sparc64/drivers/adi-test.c fd = open("/dev/adi", O_RDWR); O_RDWR 168 tools/testing/selftests/sync/sync.c return open("/sys/kernel/debug/sync/sw_sync", O_RDWR); O_RDWR 199 tools/testing/selftests/uevent/uevent_filtering.c fd = open(__DEV_FULL, O_RDWR | O_CLOEXEC); O_RDWR 94 tools/testing/selftests/vm/compaction_test.c fd = open("/proc/sys/vm/nr_hugepages", O_RDWR | O_NONBLOCK); O_RDWR 81 tools/testing/selftests/vm/gup_benchmark.c filed = open(file, O_RDWR|O_CREAT); O_RDWR 90 tools/testing/selftests/vm/gup_benchmark.c fd = open("/sys/kernel/debug/gup_benchmark", O_RDWR); O_RDWR 70 tools/testing/selftests/vm/hugepage-mmap.c fd = open(FILE_NAME, O_CREAT | O_RDWR, 0755); O_RDWR 1321 tools/testing/selftests/vm/userfaultfd.c huge_fd = open(argv[4], O_CREAT | O_RDWR, 0755); O_RDWR 81 tools/testing/selftests/x86/protection_keys.c int fd = open(file, O_RDWR); O_RDWR 871 tools/testing/selftests/x86/protection_keys.c fd = open("/dax/foo", O_RDWR); O_RDWR 264 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c ep0 = open(ep_path, O_RDWR); O_RDWR 278 tools/usb/ffs-aio-example/multibuff/device_app/aio_multibuff.c ep1 = open(ep_path, O_RDWR); O_RDWR 235 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c ep0 = open(ep_path, O_RDWR); O_RDWR 250 tools/usb/ffs-aio-example/simple/device_app/aio_simple.c ep[i] = open(ep_path, O_RDWR); O_RDWR 384 tools/usb/ffs-test.c t->fd = open(t->filename, O_RDWR); O_RDWR 297 tools/usb/testusb.c if ((fd = open (dev->name, O_RDWR)) < 0) { O_RDWR 122 tools/virtio/virtio_test.c dev->control = open("/dev/vhost-test", O_RDWR); O_RDWR 149 tools/virtio/vringh_test.c fd = open("/tmp/vringh_test-file", O_RDWR|O_CREAT|O_TRUNC, 0600); O_RDWR 1333 tools/vm/page-types.c page_idle_fd = checked_open(SYS_KERNEL_MM_PAGE_IDLE, O_RDWR); O_RDWR 2768 virt/kvm/kvm_main.c return anon_inode_getfd(name, &kvm_vcpu_fops, vcpu, O_RDWR | O_CLOEXEC); O_RDWR 3269 virt/kvm/kvm_main.c ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); O_RDWR 3603 virt/kvm/kvm_main.c file = anon_inode_getfile("kvm-vm", &kvm_vm_fops, kvm, O_RDWR);