Home
last modified time | relevance | path

Searched refs:O_RDONLY (Results 1 – 154 of 154) sorted by relevance

/linux-4.1.27/tools/testing/selftests/exec/
Dexecveat.c139 int in_fd = open_or_die(src, O_RDONLY); in exe_cp()
181 fd = open(longpath, O_RDONLY); in check_execveat_pathmax()
217 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests()
219 O_DIRECTORY|O_RDONLY); in run_tests()
220 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests()
221 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests()
222 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
223 int fd = open_or_die("execveat", O_RDONLY); in run_tests()
224 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests()
225 int fd_symlink = open_or_die("execveat.symlink", O_RDONLY); in run_tests()
[all …]
/linux-4.1.27/tools/testing/selftests/efivarfs/
Dopen-unlink.c19 fd = open(path, O_RDONLY); in set_immutable()
50 fd = open(path, O_RDONLY); in get_immutable()
114 fd = open(path, O_RDONLY); in main()
/linux-4.1.27/Documentation/timers/
Dhpet_example.c88 fd = open(argv[0], O_RDONLY); in hpet_open_close()
108 fd = open(argv[0], O_RDONLY); in hpet_info()
148 fd = open(argv[0], O_RDONLY); in hpet_poll()
242 fd = open(argv[0], O_RDONLY); in hpet_fasync()
/linux-4.1.27/Documentation/laptops/
Dfreefall.c43 int fd = open(unload_heads_path, O_RDONLY); in valid_disk()
126 fd = open("/dev/freefall", O_RDONLY); in main()
Ddslm.c147 if (!(fd = open(disk, O_RDONLY|O_NONBLOCK))) { in main()
/linux-4.1.27/tools/testing/selftests/timers/
Dclocksource-switch.c58 fd = open("/sys/devices/system/clocksource/clocksource0/available_clocksource", O_RDONLY); in get_clocksources()
90 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_RDONLY); in get_cur_clocksource()
Dmqueue-lat.c77 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
Drtctest.c52 fd = open(rtc, O_RDONLY); in main()
/linux-4.1.27/kernel/power/
Duser.c71 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { in snapshot_open()
75 data->mode = O_RDONLY; in snapshot_open()
126 pm_notifier_call_chain(data->mode == O_RDONLY ? in snapshot_release()
251 if (data->mode != O_RDONLY || !data->frozen || data->ready) { in snapshot_ioctl()
/linux-4.1.27/fs/ncpfs/
Dfile.c62 case O_RDONLY: in ncp_make_open()
63 finfo.access = O_RDONLY; in ncp_make_open()
120 error = ncp_make_open(inode, O_RDONLY); in ncp_file_read_iter()
Dmmap.c55 if (ncp_make_open(inode, O_RDONLY) >= 0) { in ncp_file_mmap_fault()
Dsymlink.c54 if (ncp_make_open(inode,O_RDONLY)) in ncp_symlink_readpage()
/linux-4.1.27/arch/cris/boot/tools/
Dbuild.c145 if ((id=open(argv[1],O_RDONLY,0))<0) in main()
174 if ((id=open(argv[2],O_RDONLY,0))<0) in main()
231 if ((id=open(argv[3],O_RDONLY,0))<0) in main()
/linux-4.1.27/fs/ecryptfs/
Dkthread.c148 flags |= IS_RDONLY(d_inode(lower_dentry)) ? O_RDONLY : O_RDWR; in ecryptfs_privileged_open()
152 if ((flags & O_ACCMODE) == O_RDONLY) { in ecryptfs_privileged_open()
Dfile.c218 == O_RDONLY && (file->f_flags & O_ACCMODE) != O_RDONLY) { in ecryptfs_open()
/linux-4.1.27/tools/power/cpupower/utils/helpers/
Dsysfs.c24 fd = open(path, O_RDONLY); in sysfs_read_file()
71 fd = open(path, O_RDONLY); in sysfs_is_cpu_online()
135 fd = open(path, O_RDONLY); in sysfs_idlestate_read_file()
Dmsr.c32 fd = open(msr_file_name, O_RDONLY); in read_msr()
/linux-4.1.27/samples/bpf/
Dbpf_load.c91 efd = open(buf, O_RDONLY, 0); in load_and_attach()
202 fd = open(path, O_RDONLY, 0); in load_bpf_file()
298 trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); in read_trace_pipe()
/linux-4.1.27/tools/power/acpi/tools/ec/
Dec_access.c209 int file_mode = O_RDONLY; in main()
217 file_mode = O_RDONLY; in main()
/linux-4.1.27/Documentation/filesystems/
Ddnotify_test.c25 fd = open(".", O_RDONLY); in main()
Ddlmfs.txt101 O_RDONLY Shared Read
108 You must provide exactly one of O_RDONLY or O_RDWR.
Doverlayfs.txt189 On a file opened with O_RDONLY fchmod(2), fchown(2), futimesat(2) and
/linux-4.1.27/tools/perf/tests/
Dopen-syscall.c38 fd = open("/etc/passwd", O_RDONLY); in test__open_syscall_event()
Dopen-syscall-tp-fields.c21 int flags = O_RDONLY | O_DIRECTORY; in test__syscall_open_tp_fields()
Dopen-syscall-all-cpus.c69 fd = open("/etc/passwd", O_RDONLY); in test__open_syscall_event_on_all_cpus()
Ddso-data.c333 fd_extra = open("/dev/null", O_RDONLY); in test__dso_data_reopen()
/linux-4.1.27/arch/um/os-Linux/
Dprocess.c33 fd = open(proc_stat, O_RDONLY, 0); in os_process_pc()
68 fd = open(stat, O_RDONLY, 0); in os_process_parent()
Dfile.c179 f = O_RDONLY; in os_open_file()
300 fd = open(file, O_RDONLY, 0); in os_file_size()
Dumid.c147 fd = open(file, O_RDONLY); in is_umdir_used()
/linux-4.1.27/tools/cgroup/
Dcgroup_event_listener.c33 cfd = open(argv[1], O_RDONLY); in main()
/linux-4.1.27/net/ceph/
Dceph_fs.c44 case O_RDONLY: in ceph_flags_to_mode()
/linux-4.1.27/tools/power/cpupower/debug/i386/
Dpowernow-k8-decode.c40 fd = open(file, O_RDONLY); in get_fidvid()
Dcentrino-decode.c43 fd = open(file, O_RDONLY); in rdmsr()
Ddump_psb.c178 fd = open("/dev/mem", O_RDONLY); in main()
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/
Dosunixmap.c104 fd = open(SYSTEM_MEMORY, O_RDONLY | O_BINARY); in acpi_os_map_memory()
/linux-4.1.27/arch/um/drivers/
Dtty.c48 mode = O_RDONLY; in tty_open()
Dmconsole_kern.c136 file = file_open_root(mnt->mnt_root, mnt, ptr, O_RDONLY, 0); in mconsole_proc()
/linux-4.1.27/tools/virtio/virtio-trace/
Dtrace-agent-ctl.c38 ctl_fd = open(ctl_path, O_RDONLY); in rw_ctl_init()
Dtrace-agent-rw.c51 rw_ti->in_fd = open(in_path, O_RDONLY); in rw_thread_init()
/linux-4.1.27/tools/perf/util/
Dzlib.c29 input_fd = open(input, O_RDONLY); in gzip_decompress_to_file()
Dsymbol-minimal.c226 fd = open(filename, O_RDONLY); in sysfs__read_build_id()
252 int fd = open(name, O_RDONLY); in symsrc__init()
Dpmu.c104 fd = open(path, O_RDONLY); in perf_pmu__parse_scale()
147 fd = open(path, O_RDONLY); in perf_pmu__parse_unit()
174 fd = open(path, O_RDONLY); in perf_pmu__parse_per_pkg()
192 fd = open(path, O_RDONLY); in perf_pmu__parse_snapshot()
Ddata.c55 fd = open(file->path, O_RDONLY); in open_file_read()
Dsymbol-elf.c436 fd = open(filename, O_RDONLY); in filename__read_build_id()
462 fd = open(filename, O_RDONLY); in sysfs__read_build_id()
511 fd = open(filename, O_RDONLY); in filename__read_debuglink()
646 fd = open(name, O_RDONLY); in symsrc__init()
1228 kcore->fd = open(filename, O_RDONLY); in kcore__open()
1582 from = open(from_filename, O_RDONLY); in kcore_copy__compare_files()
1586 to = open(to_filename, O_RDONLY); in kcore_copy__compare_files()
Dcgroup.c69 fd = open(path, O_RDONLY); in open_cgroup()
Dutil.c118 fromfd = open(from, O_RDONLY); in copyfile_mode()
497 fd = open(filename, O_RDONLY); in filename__read_str()
Dtrace-event-info.c68 fd = open(file, O_RDONLY); in record_file()
Dparse-events.c144 fd = open(evt_path, O_RDONLY); in tp_event_has_id()
189 fd = open(evt_path, O_RDONLY); in tracepoint_id_to_path()
Dsymbol.c1128 fd = open(kcore_filename, O_RDONLY); in dso__load_kcore()
1655 fd = open("/proc/kcore", O_RDONLY); in dso__find_kallsyms()
Ddso.c290 fd = open(name, O_RDONLY); in do_open()
Devent.c70 fd = open(filename, O_RDONLY); in perf_event__get_comm_ids()
Dprobe-event.c424 fd = open(exec, O_RDONLY); in get_text_start_address()
1959 ret = open(buf, O_RDONLY, 0); in open_probe_events()
Dprobe-finder.c65 fd = open(path, O_RDONLY); in debuginfo__init_offline_dwarf()
/linux-4.1.27/scripts/basic/
Dfixdep.c287 fd = open(filename, O_RDONLY); in do_config_file()
405 fd = open(depfile, O_RDONLY); in print_deps()
/linux-4.1.27/init/
Ddo_mounts_rd.c202 in_fd = sys_open(from, O_RDONLY, 0); in rd_load_image()
271 in_fd = sys_open(from, O_RDONLY, 0); in rd_load_image()
Dinitramfs.c568 fd = sys_open("/", O_RDONLY, 0); in clean_rootfs()
/linux-4.1.27/tools/testing/selftests/memfd/
Dfuse_mnt.c65 if ((fi->flags & 3) != O_RDONLY) in memfd_open()
Dfuse_test.c243 fd = open(argv[1], O_RDONLY | O_CLOEXEC); in main()
Dmemfd_test.c822 fd = mfd_assert_open(fd2, O_RDONLY, 0); in test_share_open()
/linux-4.1.27/Documentation/mic/mpssd/
Dsysfs.c40 fd = open(filename, O_RDONLY); in readsysfs()
Dmpssd.c1408 fd = open(pathname, O_RDONLY); in mic_config()
1500 fd = open(system_map, O_RDONLY); in set_log_buf_info()
/linux-4.1.27/drivers/tty/serial/
Dkgdb_nmi.c280 if (!ret && (mode == O_RDONLY || mode == O_RDWR)) in kgdb_nmi_tty_open()
291 if (mode == O_RDONLY || mode == O_RDWR) in kgdb_nmi_tty_close()
/linux-4.1.27/tools/testing/selftests/vm/
Dhugetlbfstest.c22 fd = open("/proc/self/statm", O_RDONLY); in read_rss()
Dtranshuge-stress.c84 pagemap_fd = open("/proc/self/pagemap", O_RDONLY); in main()
/linux-4.1.27/include/uapi/asm-generic/
Dfcntl.h19 #define O_RDONLY 00000000 macro
/linux-4.1.27/tools/vm/
Dpage-types.c676 kpageflags_fd = checked_open(PROC_KPAGEFLAGS, O_RDONLY); in walk_addr_ranges()
774 pagemap_fd = checked_open(buf, O_RDONLY); in parse_pid()
859 fd = checked_open(name, O_RDONLY|O_NOATIME|O_NOFOLLOW); in walk_file()
940 kpageflags_fd = checked_open(PROC_KPAGEFLAGS, O_RDONLY); in walk_page_cache()
941 pagemap_fd = checked_open("/proc/self/pagemap", O_RDONLY); in walk_page_cache()
/linux-4.1.27/tools/testing/selftests/powerpc/
Dharness.c129 fd = open("/proc/self/auxv", O_RDONLY); in get_auxv_entry()
/linux-4.1.27/arch/alpha/boot/tools/
Dmkbb.c107 fd = open(argv[2], O_RDONLY); in main()
Dobjstrip.c90 fd = open(inname, O_RDONLY); in main()
/linux-4.1.27/arch/powerpc/boot/
Dmktree.c81 if ((in_fd = open(argv[1], O_RDONLY)) < 0) { in main()
/linux-4.1.27/drivers/media/pci/ttpci/
Dav7110_av.c949 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in dvb_video_poll()
957 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_video_poll()
979 if ((file->f_flags & O_ACCMODE) == O_RDONLY) in dvb_video_write()
1107 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_video_ioctl()
1319 if (((file->f_flags & O_ACCMODE) == O_RDONLY) && in dvb_audio_ioctl()
1470 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_video_open()
1491 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_video_release()
/linux-4.1.27/tools/lib/api/fs/
Dfs.c174 int fd = open(filename, O_RDONLY), err = -1; in filename__read_int()
/linux-4.1.27/arch/mn10300/boot/tools/
Dbuild.c58 fd = open(name, O_RDONLY, 0); in file_open()
/linux-4.1.27/security/keys/
Dbig_key.c182 file = dentry_open(path, O_RDONLY, current_cred()); in big_key_read()
/linux-4.1.27/arch/arm/vdso/
Dvdsomunge.c151 infd = open(infile, O_RDONLY); in main()
/linux-4.1.27/arch/sparc/boot/
Dpiggyback.c262 if ((tail = open(argv[4], O_RDONLY)) < 0) in main()
/linux-4.1.27/fs/coda/
Dcoda_linux.c47 if ((flags & O_ACCMODE) == O_RDONLY) in coda_flags_to_cflags()
/linux-4.1.27/security/integrity/
Diint.c216 file = filp_open(path, O_RDONLY, 0); in integrity_read_file()
/linux-4.1.27/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c195 fd = open(msr_path, O_RDONLY); in get_msr()
/linux-4.1.27/tools/usb/usbip/libsrc/
Dusbip_host_driver.c50 fd = open(status_attr_path, O_RDONLY); in read_attr_usbip_status()
/linux-4.1.27/arch/x86/vdso/
Dvdso2c.c189 int fd = open(name, O_RDONLY); in map_input()
/linux-4.1.27/arch/x86/tools/
Dinsn_sanity.c126 fd = open("/dev/urandom", O_RDONLY); in init_random_seed()
/linux-4.1.27/firmware/
Dihex2fw.c100 infd = open(argv[optind], O_RDONLY); in main()
/linux-4.1.27/sound/core/
Dinfo.c319 if (mode == O_RDONLY || mode == O_RDWR) { in snd_info_entry_open()
341 if (mode == O_RDONLY || mode == O_RDWR) { in snd_info_entry_open()
375 (mode == O_RDONLY || mode == O_RDWR)) { in snd_info_entry_open()
Dcompress_offload.c94 else if ((f->f_flags & O_ACCMODE) == O_RDONLY) in snd_compr_open()
/linux-4.1.27/drivers/media/dvb-core/
Ddvbdev.c116 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_generic_open()
139 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_generic_release()
Ddmxdev.c146 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_dvr_open()
195 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_dvr_release()
1192 if ((file->f_flags & O_ACCMODE) == O_RDONLY) { in dvb_dvr_poll()
Ddvb_frontend.c2034 if ((file->f_flags & O_ACCMODE) == O_RDONLY && in dvb_frontend_ioctl()
2621 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_frontend_open()
2659 if ((file->f_flags & O_ACCMODE) != O_RDONLY) { in dvb_frontend_release()
Ddvb_net.c1318 if (((file->f_flags&O_ACCMODE)==O_RDONLY))
/linux-4.1.27/tools/iio/
Dgeneric_buffer.c297 fp = open(buffer_access, O_RDONLY | O_NONBLOCK); in main()
/linux-4.1.27/fs/cifs/
Dfscache.c103 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) in cifs_fscache_set_inode_cookie()
Dfile.c49 if ((flags & O_ACCMODE) == O_RDONLY) in cifs_convert_flags()
69 if ((flags & O_ACCMODE) == O_RDONLY) in cifs_posix_convert_flags()
3817 break_lease(inode, O_RDONLY); in cifs_oplock_break()
/linux-4.1.27/drivers/s390/char/
Dhmcdrv_dev.c125 if ((fp->f_flags & O_ACCMODE) == O_RDONLY) in hmcdrv_dev_open()
Dvmur.c732 if (((accmode == O_RDONLY) && (urd->class != DEV_CLASS_UR_I)) || in ur_open()
787 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in ur_llseek()
/linux-4.1.27/drivers/media/pci/cx25821/
Dcx25821-audio-upstream.c274 file = filp_open(dev->_audiofilename, O_RDONLY | O_LARGEFILE, 0); in cx25821_get_audio_data()
329 file = filp_open(dev->_audiofilename, O_RDONLY | O_LARGEFILE, 0); in cx25821_openfile_audio()
/linux-4.1.27/fs/overlayfs/
Dreaddir.c245 realfile = ovl_path_open(realpath, O_RDONLY | O_DIRECTORY); in ovl_dir_read()
455 realfile = ovl_path_open(&upperpath, O_RDONLY); in ovl_dir_fsync()
Dcopy_up.c95 old_file = ovl_path_open(old, O_LARGEFILE | O_RDONLY); in ovl_copy_up_data()
/linux-4.1.27/drivers/usb/gadget/function/
Du_uac1.c245 snd->filp = filp_open(fn_cap, O_RDONLY, 0); in gaudio_open_snd_dev()
Dstorage_common.c204 filp = filp_open(filename, O_RDONLY | O_LARGEFILE, 0); in fsg_lun_open()
/linux-4.1.27/arch/x86/boot/tools/
Dbuild.c382 fd = open(argv[2], O_RDONLY); in main()
/linux-4.1.27/tools/hv/
Dhv_vss_daemon.c51 int ret, fd = open(dir, O_RDONLY); in vss_do_freeze()
/linux-4.1.27/security/tomoyo/
Dtomoyo.c136 O_RDONLY); in tomoyo_bprm_check_security()
/linux-4.1.27/scripts/dtc/
Dutil.c210 fd = open(filename, O_RDONLY); in utilfdt_read_err_len()
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
Dinode.c308 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_context_open()
529 filp = dentry_open(path, O_RDONLY, current_cred()); in spufs_gang_open()
/linux-4.1.27/drivers/misc/genwqe/
Dcard_dev.c1095 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1131 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
1154 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in genwqe_ioctl()
/linux-4.1.27/fs/9p/
Dcache.c248 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) in v9fs_cache_inode_set_cookie()
Dvfs_inode.c182 case O_RDONLY: in v9fs_uflags2omode()
887 ((flags & O_ACCMODE) != O_RDONLY)) { in v9fs_vfs_atomic_open()
Dvfs_file.c95 ((file->f_flags & O_ACCMODE) != O_RDONLY)) { in v9fs_file_open()
Dvfs_inode_dotl.c334 ((flags & O_ACCMODE) != O_RDONLY)) { in v9fs_vfs_atomic_open_dotl()
/linux-4.1.27/fs/hostfs/
Dhostfs_user.c75 mode = O_RDONLY; in open_file()
/linux-4.1.27/sound/core/seq/oss/
Dseq_oss_init.c299 if ((file->f_flags & O_ACCMODE) != O_RDONLY) in translate_mode()
/linux-4.1.27/fs/exportfs/
Dexpfs.c305 file = dentry_open(path, O_RDONLY, cred); in get_name()
/linux-4.1.27/usr/
Dgen_init_cpio.c310 file = open (location, O_RDONLY); in cpio_mkfile()
/linux-4.1.27/Documentation/accounting/
Dgetdelays.c426 cfd = open(containerpath, O_RDONLY); in main()
/linux-4.1.27/drivers/iio/
Dindustrialio-event.c183 indio_dev, O_RDONLY | O_CLOEXEC); in iio_event_getfd()
/linux-4.1.27/tools/lguest/
Dlguest.c342 int fd = open_or_die("/dev/zero", O_RDONLY); in map_zeroed_pages()
561 ifd = open_or_die(name, O_RDONLY); in load_initrd()
3113 rng_info->rfd = open_or_die("/dev/urandom", O_RDONLY); in setup_rng()
3312 start = load_kernel(open_or_die(argv[optind+1], O_RDONLY)); in main()
/linux-4.1.27/tools/power/cpupower/lib/
Dsysfs.c29 fd = open(path, O_RDONLY); in sysfs_read_file()
/linux-4.1.27/Documentation/target/
Dtcmu-design.txt280 fd = open("/sys/class/uio/uio0/name", O_RDONLY);
291 fd = open(/sys/class/uio/%s/maps/map0/size, O_RDONLY);
/linux-4.1.27/fs/autofs4/
Ddev-ioctl.c253 filp = dentry_open(&path, O_RDONLY, current_cred()); in autofs_dev_ioctl_open_mountpoint()
/linux-4.1.27/fs/notify/inotify/
Dinotify_user.c687 O_RDONLY | flags); in SYSCALL_DEFINE1()
/linux-4.1.27/fs/
Dfcntl.c744 O_RDONLY | O_WRONLY | O_RDWR | in fcntl_init()
Dexec.c115 .open_flag = O_LARGEFILE | O_RDONLY | __FMODE_EXEC, in SYSCALL_DEFINE1()
759 .open_flag = O_LARGEFILE | O_RDONLY | __FMODE_EXEC, in do_open_execat()
Dpipe.c710 res[0]->f_flags = O_RDONLY | (flags & O_NONBLOCK); in create_pipe_files()
Dnamei.c2643 if ((flag & O_ACCMODE) != O_RDONLY && !(flag & O_APPEND)) in may_open()
2752 (open_flag & O_ACCMODE) != O_RDONLY) && unlikely(!got_write)) { in atomic_open()
Dlocks.c1394 int want_write = (mode & O_ACCMODE) != O_RDONLY; in __break_lease()
/linux-4.1.27/tools/testing/selftests/net/
Dpsock_tpacket.c719 fd = open("/proc/kallsyms", O_RDONLY); in test_kernel_bit_width()
/linux-4.1.27/arch/mips/boot/
Delf2ecoff.c298 if ((infile = open(argv[1], O_RDONLY)) < 0) { in main()
/linux-4.1.27/arch/powerpc/kvm/
Dbook3s_64_mmu_hv.c1474 rwflag = (ghf->flags & KVM_GET_HTAB_WRITE) ? O_WRONLY : O_RDONLY; in kvm_vm_ioctl_get_htab_fd()
1481 if (rwflag == O_RDONLY) { in kvm_vm_ioctl_get_htab_fd()
/linux-4.1.27/fs/hppfs/
Dhppfs.c414 return O_RDONLY; in file_mode()
/linux-4.1.27/Documentation/input/
Djoystick-api.txt19 int fd = open ("/dev/input/js0", O_RDONLY);
/linux-4.1.27/fs/notify/fanotify/
Dfanotify_user.c710 case O_RDONLY: in SYSCALL_DEFINE2()
/linux-4.1.27/Documentation/x86/
Dmtrr.txt170 if ( ( fd = open ("/proc/mtrr", O_RDONLY, 0) ) == -1 )
/linux-4.1.27/drivers/misc/carma/
Dcarma-fpga-program.c827 if ((filp->f_flags & O_ACCMODE) != O_RDONLY) in fpga_llseek()
/linux-4.1.27/fs/nfsd/
Dnfs4state.c330 ret = __nfs4_get_fd(f, O_RDONLY); in find_readable_file_locked()
358 ret = __nfs4_get_fd(f, O_RDONLY); in find_any_file()
408 atomic_inc(&fp->fi_access[O_RDONLY]); in __nfs4_file_get_access()
437 atomic_read(&fp->fi_access[O_RDONLY])) in nfs4_file_check_deny()
473 __nfs4_file_put_access(fp, O_RDONLY); in nfs4_file_put_access()
992 return O_RDONLY; in nfs4_access_to_omode()
999 return O_RDONLY; in nfs4_access_to_omode()
Dvfs.c667 mode = (access & NFSD_MAY_WRITE) ? O_WRONLY : O_RDONLY; in nfsd_open_break_lease()
684 int flags = O_RDONLY|O_LARGEFILE; in nfsd_open()
Dnfs4recover.c470 nn->rec_file = filp_open(user_recovery_dirname, O_RDONLY | O_DIRECTORY, 0); in nfsd4_init_recdir()
/linux-4.1.27/Documentation/sound/alsa/
DOSS-Emulation.txt291 input_handle = open("device", O_RDONLY)
/linux-4.1.27/drivers/infiniband/core/
Duverbs_main.c575 ev_file, O_RDONLY); in ib_uverbs_alloc_event_file()
/linux-4.1.27/fs/nfs/
Ddir.c1450 if ((flags & O_ACCMODE) != O_RDONLY) in flags_to_mode()
2436 if ((openflags & O_ACCMODE) != O_RDONLY) in nfs_open_permission_mask()
/linux-4.1.27/kernel/
Dsysctl_binary.c1317 flags = O_RDONLY; in binary_sysctl()
/linux-4.1.27/tools/net/
Dbpf_dbg.c949 pcap_fd = open(file, O_RDONLY); in try_load_pcap()
/linux-4.1.27/drivers/base/
Dfirmware_class.c336 file = filp_open(path, O_RDONLY, 0); in fw_get_filesystem_firmware()
/linux-4.1.27/scripts/
Dasn1_compiler.c565 fd = open(filename, O_RDONLY); in main()
/linux-4.1.27/tools/perf/
Dbuiltin-script.c1790 input = open(file.path, O_RDONLY); /* input_name */ in cmd_script()
/linux-4.1.27/Documentation/cdrom/
Dide-cd402 fd = open(device, O_RDONLY | O_NONBLOCK);
Dcdrom-standard.tex676 \item If no other flags are set than $O_RDONLY$, the device is opened
/linux-4.1.27/Documentation/ia64/
Derr_inject.txt474 fd=open(fn, O_RDONLY);
/linux-4.1.27/drivers/ide/
Dide-tape.c1513 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) in idetape_chrdev_open()
/linux-4.1.27/scripts/mod/
Dmodpost.c350 fd = open(filename, O_RDONLY); in grab_file()
/linux-4.1.27/tools/power/x86/turbostat/
Dturbostat.c268 fd = open(pathname, O_RDONLY); in get_msr()
/linux-4.1.27/drivers/scsi/
Dsg.c283 if ((flags & O_EXCL) && (O_RDONLY == (flags & O_ACCMODE))) in sg_open()
Dst.c1247 STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY); in st_open()
Dosst.c4504 STp->write_prot = ((flags & O_ACCMODE) == O_RDONLY); in __os_scsi_tape_open()
/linux-4.1.27/arch/ia64/kernel/
Dperfmon.c2210 file->f_flags = O_RDONLY; in pfm_alloc_file()