O_RDONLY 108 arch/alpha/boot/tools/mkbb.c fd = open(argv[2], O_RDONLY); O_RDONLY 91 arch/alpha/boot/tools/objstrip.c fd = open(inname, O_RDONLY); O_RDONLY 138 arch/arm/vdso/vdsomunge.c infd = open(infile, O_RDONLY); O_RDONLY 2167 arch/ia64/kernel/perfmon.c file->f_flags = O_RDONLY; O_RDONLY 300 arch/mips/boot/elf2ecoff.c if ((infile = open(argv[1], O_RDONLY)) < 0) { O_RDONLY 82 arch/powerpc/boot/mktree.c if ((in_fd = open(argv[1], O_RDONLY)) < 0) { O_RDONLY 1999 arch/powerpc/kvm/book3s_64_mmu_hv.c rwflag = (ghf->flags & KVM_GET_HTAB_WRITE) ? O_WRONLY : O_RDONLY; O_RDONLY 2007 arch/powerpc/kvm/book3s_64_mmu_hv.c if (rwflag == O_RDONLY) { O_RDONLY 290 arch/powerpc/platforms/cell/spufs/inode.c filp = dentry_open(path, O_RDONLY, current_cred()); O_RDONLY 513 arch/powerpc/platforms/cell/spufs/inode.c filp = dentry_open(path, O_RDONLY, current_cred()); O_RDONLY 251 arch/sparc/boot/piggyback.c if ((tail = open(argv[4], O_RDONLY)) < 0) O_RDONLY 163 arch/sparc/vdso/vdso2c.c int fd = open(name, O_RDONLY); O_RDONLY 137 arch/um/drivers/mconsole_kern.c file = file_open_root(mnt->mnt_root, mnt, ptr, O_RDONLY, 0); O_RDONLY 48 arch/um/drivers/tty.c mode = O_RDONLY; O_RDONLY 183 arch/um/os-Linux/file.c f = O_RDONLY; O_RDONLY 323 arch/um/os-Linux/file.c fd = open(file, O_RDONLY, 0); O_RDONLY 34 arch/um/os-Linux/process.c fd = open(proc_stat, O_RDONLY, 0); O_RDONLY 69 arch/um/os-Linux/process.c fd = open(stat, O_RDONLY, 0); O_RDONLY 156 arch/um/os-Linux/umid.c fd = open(file, O_RDONLY); O_RDONLY 383 arch/x86/boot/tools/build.c fd = open(argv[2], O_RDONLY); O_RDONLY 185 arch/x86/entry/vdso/vdso2c.c int fd = open(name, O_RDONLY); O_RDONLY 113 arch/x86/tools/insn_sanity.c fd = open("/dev/urandom", O_RDONLY); O_RDONLY 631 drivers/gpio/gpiolib.c fd = get_unused_fd_flags(O_RDONLY | O_CLOEXEC); O_RDONLY 640 drivers/gpio/gpiolib.c O_RDONLY | O_CLOEXEC); O_RDONLY 989 drivers/gpio/gpiolib.c fd = get_unused_fd_flags(O_RDONLY | O_CLOEXEC); O_RDONLY 998 drivers/gpio/gpiolib.c O_RDONLY | O_CLOEXEC); O_RDONLY 1515 drivers/ide/ide-tape.c if ((filp->f_flags & O_ACCMODE) == O_RDONLY) O_RDONLY 205 drivers/iio/industrialio-event.c indio_dev, O_RDONLY | O_CLOEXEC); O_RDONLY 574 drivers/infiniband/core/uverbs_main.c ev_file, O_RDONLY); O_RDONLY 236 drivers/infiniband/core/uverbs_std_types.c O_RDONLY)); O_RDONLY 2905 drivers/infiniband/hw/mlx5/devx.c O_RDONLY), O_RDONLY 2923 drivers/infiniband/hw/mlx5/devx.c O_RDONLY), O_RDONLY 155 drivers/media/dvb-core/dmxdev.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) O_RDONLY 223 drivers/media/dvb-core/dmxdev.c if (((file->f_flags & O_ACCMODE) == O_RDONLY) || O_RDONLY 1356 drivers/media/dvb-core/dmxdev.c if (((file->f_flags & O_ACCMODE) == O_RDONLY) || O_RDONLY 2017 drivers/media/dvb-core/dvb_frontend.c if ((file->f_flags & O_ACCMODE) == O_RDONLY O_RDONLY 2791 drivers/media/dvb-core/dvb_frontend.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) { O_RDONLY 2860 drivers/media/dvb-core/dvb_frontend.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) { O_RDONLY 1429 drivers/media/dvb-core/dvb_net.c if (((file->f_flags&O_ACCMODE)==O_RDONLY)) O_RDONLY 144 drivers/media/dvb-core/dvbdev.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) { O_RDONLY 167 drivers/media/dvb-core/dvbdev.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) { O_RDONLY 802 drivers/media/pci/ddbridge/ddbridge-core.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) { O_RDONLY 826 drivers/media/pci/ddbridge/ddbridge-core.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) { O_RDONLY 841 drivers/media/pci/ddbridge/ddbridge-core.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) O_RDONLY 933 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) O_RDONLY 941 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) { O_RDONLY 963 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) O_RDONLY 1130 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) { O_RDONLY 1361 drivers/media/pci/ttpci/av7110_av.c if (((file->f_flags & O_ACCMODE) == O_RDONLY) && O_RDONLY 1512 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) { O_RDONLY 1533 drivers/media/pci/ttpci/av7110_av.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) { O_RDONLY 1086 drivers/misc/genwqe/card_dev.c if ((filp->f_flags & O_ACCMODE) == O_RDONLY) O_RDONLY 1122 drivers/misc/genwqe/card_dev.c if ((filp->f_flags & O_ACCMODE) == O_RDONLY) O_RDONLY 1145 drivers/misc/genwqe/card_dev.c if ((filp->f_flags & O_ACCMODE) == O_RDONLY) O_RDONLY 1173 drivers/nvdimm/bus.c ro = ((file->f_flags & O_ACCMODE) == O_RDONLY); O_RDONLY 126 drivers/s390/char/hmcdrv_dev.c if ((fp->f_flags & O_ACCMODE) == O_RDONLY) O_RDONLY 734 drivers/s390/char/vmur.c if (((accmode == O_RDONLY) && (urd->class != DEV_CLASS_UR_I)) || O_RDONLY 787 drivers/s390/char/vmur.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) O_RDONLY 293 drivers/scsi/sg.c if ((flags & O_EXCL) && (O_RDONLY == (flags & O_ACCMODE))) O_RDONLY 1301 drivers/scsi/st.c STp->write_prot = ((filp->f_flags & O_ACCMODE) == O_RDONLY); O_RDONLY 658 drivers/staging/axis-fifo/axis-fifo.c if (((f->f_flags & O_ACCMODE) == O_RDONLY) || O_RDONLY 290 drivers/staging/greybus/tools/loopback_test.c fd = open_sysfs(sys_pfx, node, O_RDONLY); O_RDONLY 301 drivers/staging/greybus/tools/loopback_test.c fd = open_sysfs(sys_pfx, node, O_RDONLY); O_RDONLY 653 drivers/staging/greybus/tools/loopback_test.c t->fds[fds_idx].fd = open(buf, O_RDONLY); O_RDONLY 129 drivers/staging/most/cdev/cdev.c ((filp->f_flags & O_ACCMODE) != O_RDONLY)) || O_RDONLY 134 drivers/staging/rtl8723bs/os_dep/osdep_service.c fp = filp_open(path, O_RDONLY, 0); O_RDONLY 158 drivers/staging/rtl8723bs/os_dep/osdep_service.c ret = openFile(&fp, path, O_RDONLY, 0); O_RDONLY 132 drivers/target/target_core_configfs.c fp = filp_open(db_root_stage, O_RDONLY, 0); O_RDONLY 3441 drivers/target/target_core_configfs.c fp = filp_open(db_root_stage, O_RDONLY, 0); O_RDONLY 277 drivers/tty/serial/kgdb_nmi.c if (!ret && (mode == O_RDONLY || mode == O_RDWR)) O_RDONLY 288 drivers/tty/serial/kgdb_nmi.c if (mode == O_RDONLY || mode == O_RDWR) O_RDONLY 198 drivers/usb/gadget/function/storage_common.c filp = filp_open(filename, O_RDONLY | O_LARGEFILE, 0); O_RDONLY 238 drivers/usb/gadget/function/u_uac1_legacy.c snd->filp = filp_open(fn_cap, O_RDONLY, 0); O_RDONLY 165 fs/9p/cache.c if ((filp->f_flags & O_ACCMODE) != O_RDONLY) O_RDONLY 80 fs/9p/vfs_file.c ((file->f_flags & O_ACCMODE) != O_RDONLY)) { O_RDONLY 167 fs/9p/vfs_inode.c case O_RDONLY: O_RDONLY 881 fs/9p/vfs_inode.c ((flags & O_ACCMODE) != O_RDONLY)) { O_RDONLY 321 fs/9p/vfs_inode_dotl.c ((flags & O_ACCMODE) != O_RDONLY)) { O_RDONLY 238 fs/autofs/dev-ioctl.c filp = dentry_open(&path, O_RDONLY, current_cred()); O_RDONLY 25 fs/ceph/file.c case O_RDONLY: O_RDONLY 312 fs/ceph/file.c flags = O_RDONLY; O_RDONLY 50 fs/cifs/file.c if ((flags & O_ACCMODE) == O_RDONLY) O_RDONLY 70 fs/cifs/file.c if ((flags & O_ACCMODE) == O_RDONLY) O_RDONLY 4694 fs/cifs/file.c break_lease(inode, O_RDONLY); O_RDONLY 196 fs/cifs/fscache.c if ((filp->f_flags & O_ACCMODE) != O_RDONLY) O_RDONLY 48 fs/coda/coda_linux.c if ((flags & O_ACCMODE) == O_RDONLY) O_RDONLY 227 fs/ecryptfs/file.c == O_RDONLY && (file->f_flags & O_ACCMODE) != O_RDONLY) { O_RDONLY 133 fs/ecryptfs/kthread.c flags |= IS_RDONLY(d_inode(lower_dentry)) ? O_RDONLY : O_RDWR; O_RDONLY 137 fs/ecryptfs/kthread.c if ((flags & O_ACCMODE) == O_RDONLY) { O_RDONLY 128 fs/exec.c .open_flag = O_LARGEFILE | O_RDONLY | __FMODE_EXEC, O_RDONLY 844 fs/exec.c .open_flag = O_LARGEFILE | O_RDONLY | __FMODE_EXEC, O_RDONLY 975 fs/exec.c file = filp_open(path, O_RDONLY, 0); O_RDONLY 313 fs/exportfs/expfs.c file = dentry_open(path, O_RDONLY, cred); O_RDONLY 75 fs/hostfs/hostfs_user.c mode = O_RDONLY; O_RDONLY 1609 fs/locks.c int want_write = (mode & O_ACCMODE) != O_RDONLY; O_RDONLY 2972 fs/namei.c if ((flag & O_ACCMODE) != O_RDONLY && !(flag & O_APPEND)) O_RDONLY 1483 fs/nfs/dir.c if ((flags & O_ACCMODE) != O_RDONLY) O_RDONLY 2553 fs/nfs/dir.c if ((openflags & O_ACCMODE) != O_RDONLY) O_RDONLY 551 fs/nfsd/nfs4recover.c nn->rec_file = filp_open(user_recovery_dirname, O_RDONLY | O_DIRECTORY, 0); O_RDONLY 475 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_RDONLY); O_RDONLY 503 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_RDONLY); O_RDONLY 553 fs/nfsd/nfs4state.c atomic_inc(&fp->fi_access[O_RDONLY]); O_RDONLY 582 fs/nfsd/nfs4state.c atomic_read(&fp->fi_access[O_RDONLY])) O_RDONLY 618 fs/nfsd/nfs4state.c __nfs4_file_put_access(fp, O_RDONLY); O_RDONLY 1185 fs/nfsd/nfs4state.c return O_RDONLY; O_RDONLY 1192 fs/nfsd/nfs4state.c return O_RDONLY; O_RDONLY 696 fs/nfsd/vfs.c mode = (access & NFSD_MAY_WRITE) ? O_WRONLY : O_RDONLY; O_RDONLY 713 fs/nfsd/vfs.c int flags = O_RDONLY|O_LARGEFILE; O_RDONLY 790 fs/notify/fanotify/fanotify_user.c case O_RDONLY: O_RDONLY 681 fs/notify/inotify/inotify_user.c O_RDONLY | flags); O_RDONLY 174 fs/nsfs.c f = dentry_open(&path, O_RDONLY, current_cred()); O_RDONLY 131 fs/overlayfs/copy_up.c old_file = ovl_path_open(old, O_LARGEFILE | O_RDONLY); O_RDONLY 300 fs/overlayfs/readdir.c realfile = ovl_path_open(realpath, O_RDONLY | O_DIRECTORY); O_RDONLY 845 fs/overlayfs/readdir.c realfile = ovl_path_open(&upperpath, O_RDONLY); O_RDONLY 787 fs/pipe.c res[0] = alloc_file_clone(f, O_RDONLY | (flags & O_NONBLOCK), O_RDONLY 9 include/linux/fcntl.h (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \ O_RDONLY 193 init/do_mounts_rd.c in_fd = ksys_open(from, O_RDONLY, 0); O_RDONLY 255 init/do_mounts_rd.c in_fd = ksys_open(from, O_RDONLY, 0); O_RDONLY 575 init/initramfs.c fd = ksys_open("/", O_RDONLY, 0); O_RDONLY 1464 ipc/shm.c f_flags = O_RDONLY; O_RDONLY 3402 kernel/bpf/btf.c return anon_inode_getfd("btf", &btf_fops, btf, O_RDONLY | O_CLOEXEC); O_RDONLY 456 kernel/bpf/syscall.c return O_RDONLY; O_RDONLY 68 kernel/power/user.c if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { O_RDONLY 72 kernel/power/user.c data->mode = O_RDONLY; O_RDONLY 125 kernel/power/user.c pm_notifier_call_chain(data->mode == O_RDONLY ? O_RDONLY 253 kernel/power/user.c if (data->mode != O_RDONLY || !data->frozen || data->ready) { O_RDONLY 1299 kernel/sysctl_binary.c flags = O_RDONLY; O_RDONLY 70 net/ceph/ceph_fs.c case O_RDONLY: O_RDONLY 54 samples/binderfs/binderfs_example.c fd = open("/dev/binderfs/binder-control", O_RDONLY | O_CLOEXEC); O_RDONLY 225 samples/bpf/bpf_load.c efd = open(buf, O_RDONLY, 0); O_RDONLY 526 samples/bpf/bpf_load.c fd = open(path, O_RDONLY, 0); O_RDONLY 673 samples/bpf/bpf_load.c trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); O_RDONLY 83 samples/bpf/hbm.c trace_fd = open(DEBUGFS "trace_pipe", O_RDONLY, 0); O_RDONLY 134 samples/bpf/hbm.c if (access(prog, O_RDONLY) < 0) { O_RDONLY 70 samples/bpf/syscall_tp_user.c fd = open(filename, O_RDONLY); O_RDONLY 53 samples/bpf/task_fd_query_user.c fd = open(buf, O_RDONLY); O_RDONLY 75 samples/bpf/task_fd_query_user.c fd = open(buf, O_RDONLY); O_RDONLY 245 samples/bpf/task_fd_query_user.c efd = open(buf, O_RDONLY, 0); O_RDONLY 59 samples/bpf/test_cgrp2_array_pin.c cg2_fd = open(cg2, O_RDONLY); O_RDONLY 158 samples/bpf/test_cgrp2_attach.c cg_fd = open(argv[optind], O_DIRECTORY | O_RDONLY); O_RDONLY 257 samples/bpf/test_cgrp2_sock.c cg_fd = open(cgrp_path, O_DIRECTORY | O_RDONLY); O_RDONLY 40 samples/bpf/test_cgrp2_sock2.c cg_fd = open(argv[1], O_DIRECTORY | O_RDONLY); O_RDONLY 63 samples/bpf/test_overhead_user.c fd = open("/dev/urandom", O_RDONLY); O_RDONLY 109 samples/bpf/xdp_fwd_user.c if (access(filename, O_RDONLY) < 0) { O_RDONLY 1428 samples/mic/mpssd/mpssd.c fd = open(pathname, O_RDONLY); O_RDONLY 1550 samples/mic/mpssd/mpssd.c fd = open(system_map, O_RDONLY); O_RDONLY 29 samples/mic/mpssd/sysfs.c fd = open(filename, O_RDONLY); O_RDONLY 58 samples/pidfd/pidfd-metadata.c procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); O_RDONLY 105 samples/pidfd/pidfd-metadata.c statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); O_RDONLY 128 samples/seccomp/user-trap.c mem = open(path, O_RDONLY); O_RDONLY 89 samples/timers/hpet_example.c fd = open(argv[0], O_RDONLY); O_RDONLY 109 samples/timers/hpet_example.c fd = open(argv[0], O_RDONLY); O_RDONLY 149 samples/timers/hpet_example.c fd = open(argv[0], O_RDONLY); O_RDONLY 243 samples/timers/hpet_example.c fd = open(argv[0], O_RDONLY); O_RDONLY 594 scripts/asn1_compiler.c fd = open(filename, O_RDONLY); O_RDONLY 272 scripts/basic/fixdep.c fd = open(filename, O_RDONLY); O_RDONLY 243 scripts/dtc/util.c fd = open(filename, O_RDONLY); O_RDONLY 234 scripts/insert-sys-cert.c fd = open(file_name, O_RDONLY); O_RDONLY 48 scripts/kconfig/confdata.c fd1 = open(file1, O_RDONLY); O_RDONLY 52 scripts/kconfig/confdata.c fd2 = open(file2, O_RDONLY); O_RDONLY 425 scripts/mod/modpost.c fd = open(filename, O_RDONLY); O_RDONLY 172 scripts/recordmcount.c fd_map = open(fname, O_RDONLY); O_RDONLY 430 security/integrity/ima/ima_crypto.c flags |= O_RDONLY; O_RDONLY 389 security/integrity/ima/ima_fs.c if ((filp->f_flags & O_ACCMODE) != O_RDONLY) O_RDONLY 412 security/integrity/ima/ima_fs.c if ((file->f_flags & O_ACCMODE) == O_RDONLY) O_RDONLY 375 security/keys/big_key.c file = dentry_open(path, O_RDONLY, current_cred()); O_RDONLY 116 security/tomoyo/tomoyo.c &bprm->file->f_path, O_RDONLY); O_RDONLY 88 sound/core/compress_offload.c else if ((f->f_flags & O_ACCMODE) == O_RDONLY) O_RDONLY 248 sound/core/info.c if (((mode == O_RDONLY || mode == O_RDWR) && !entry->c.ops->read) || O_RDONLY 286 sound/core/seq/oss/seq_oss_init.c if ((file->f_flags & O_ACCMODE) != O_RDONLY) O_RDONLY 434 tools/accounting/getdelays.c cfd = open(containerpath, O_RDONLY); O_RDONLY 949 tools/bpf/bpf_dbg.c pcap_fd = open(file, O_RDONLY); O_RDONLY 132 tools/bpf/bpf_jit_disasm.c fd = open(file, O_RDONLY); O_RDONLY 209 tools/bpf/bpftool/cgroup.c cgroup_fd = open(path, O_RDONLY); O_RDONLY 268 tools/bpf/bpftool/cgroup.c cgroup_fd = open(fpath, O_RDONLY); O_RDONLY 409 tools/bpf/bpftool/cgroup.c cgroup_fd = open(argv[0], O_RDONLY); O_RDONLY 467 tools/bpf/bpftool/cgroup.c cgroup_fd = open(argv[0], O_RDONLY); O_RDONLY 480 tools/bpf/bpftool/common.c fd = open(path, O_RDONLY); O_RDONLY 227 tools/bpf/bpftool/net.c fd = open("/proc/self/ns/net", O_RDONLY); O_RDONLY 32 tools/bpf/bpftool/perf.c fd = open("/", O_RDONLY); O_RDONLY 127 tools/build/fixdep.c fd = open(depfile, O_RDONLY); O_RDONLY 34 tools/cgroup/cgroup_event_listener.c cfd = open(argv[1], O_RDONLY); O_RDONLY 101 tools/firmware/ihex2fw.c infd = open(argv[optind], O_RDONLY); O_RDONLY 34 tools/hv/hv_vss_daemon.c int ret, fd = open(dir, O_RDONLY); O_RDONLY 629 tools/iio/iio_generic_buffer.c fp = open(buffer_access, O_RDONLY | O_NONBLOCK); O_RDONLY 493 tools/io_uring/io_uring-bench.c flags = O_RDONLY | O_NOATIME; O_RDONLY 238 tools/io_uring/io_uring-cp.c infd = open(argv[1], O_RDONLY); O_RDONLY 147 tools/laptop/dslm/dslm.c if (!(fd = open(disk, O_RDONLY|O_NONBLOCK))) { O_RDONLY 42 tools/laptop/freefall/freefall.c int fd = open(unload_heads_path, O_RDONLY); O_RDONLY 125 tools/laptop/freefall/freefall.c fd = open("/dev/freefall", O_RDONLY); O_RDONLY 42 tools/leds/led_hw_brightness_mon.c fd = open(brightness_file_path, O_RDONLY); O_RDONLY 306 tools/lib/api/fs/fs.c int fd = open(filename, O_RDONLY), err = -1; O_RDONLY 324 tools/lib/api/fs/fs.c int fd = open(filename, O_RDONLY), err = -1; O_RDONLY 367 tools/lib/api/fs/fs.c fd = open(filename, O_RDONLY); O_RDONLY 396 tools/lib/bpf/btf.c fd = open(path, O_RDONLY); O_RDONLY 575 tools/lib/bpf/libbpf.c obj->efile.fd = open(obj->path, O_RDONLY); O_RDONLY 1899 tools/lib/bpf/libbpf.c new_fd = open("/", O_RDONLY | O_CLOEXEC); O_RDONLY 5963 tools/lib/bpf/libbpf.c fd = open(fcpu, O_RDONLY); O_RDONLY 36 tools/lib/bpf/libbpf_probes.c fd = open(path, O_RDONLY); O_RDONLY 2442 tools/objtool/check.c file.elf = elf_read(objname, orc ? O_RDWR : O_RDONLY); O_RDONLY 427 tools/objtool/elf.c if ((flags & O_ACCMODE) == O_RDONLY) O_RDONLY 82 tools/objtool/orc_dump.c fd = open(objname, O_RDONLY); O_RDONLY 351 tools/perf/builtin-ftrace.c trace_fd = open(trace_file, O_RDONLY); O_RDONLY 3823 tools/perf/builtin-script.c input = open(data.path, O_RDONLY); /* input_name */ O_RDONLY 65 tools/perf/jvmti/jvmti_agent.c fd = open("/proc/self/exe", O_RDONLY); O_RDONLY 50 tools/perf/pmu-events/json.c int fd = open(fn, O_RDONLY); O_RDONLY 44 tools/perf/tests/bpf.c fds[0] = open("/dev/null", O_RDONLY); O_RDONLY 353 tools/perf/tests/dso-data.c fd_extra = open("/dev/null", O_RDONLY); O_RDONLY 82 tools/perf/tests/openat-syscall-all-cpus.c fd = openat(0, "/etc/passwd", O_RDONLY); O_RDONLY 37 tools/perf/tests/openat-syscall-tp-fields.c int flags = O_RDONLY | O_DIRECTORY; O_RDONLY 45 tools/perf/tests/openat-syscall.c fd = openat(0, "/etc/passwd", O_RDONLY); O_RDONLY 30 tools/perf/trace/beauty/open_flags.c if ((flags & O_ACCMODE) == O_RDONLY) O_RDONLY 87 tools/perf/util/cgroup.c fd = open(path, O_RDONLY); O_RDONLY 115 tools/perf/util/copyfile.c fromfd = open(from, O_RDONLY); O_RDONLY 115 tools/perf/util/data.c ret = open(file->path, O_RDONLY); O_RDONLY 226 tools/perf/util/data.c fd = open(data->file.path, O_RDONLY); O_RDONLY 290 tools/perf/util/dso.c return open(name, O_RDONLY); O_RDONLY 453 tools/perf/util/dso.c fd = open(name, O_RDONLY|O_CLOEXEC); O_RDONLY 115 tools/perf/util/genelf.c fd = open("/dev/urandom", O_RDONLY); O_RDONLY 110 tools/perf/util/lzma.c int fd = open(input, O_RDONLY); O_RDONLY 225 tools/perf/util/namespaces.c oldns = open(curpath, O_RDONLY); O_RDONLY 229 tools/perf/util/namespaces.c newns = open(nsi->mntns_path, O_RDONLY); O_RDONLY 168 tools/perf/util/parse-events.c fd = open(evt_path, O_RDONLY); O_RDONLY 213 tools/perf/util/parse-events.c fd = open(evt_path, O_RDONLY); O_RDONLY 151 tools/perf/util/pmu.c fd = open(path, O_RDONLY); O_RDONLY 181 tools/perf/util/pmu.c fd = open(path, O_RDONLY); O_RDONLY 211 tools/perf/util/pmu.c fd = open(path, O_RDONLY); O_RDONLY 229 tools/perf/util/pmu.c fd = open(path, O_RDONLY); O_RDONLY 268 tools/perf/util/probe-event.c fd = open(module, O_RDONLY); O_RDONLY 538 tools/perf/util/probe-event.c fd = open(exec, O_RDONLY); O_RDONLY 85 tools/perf/util/probe-file.c ret = open(buf, O_RDONLY, 0); O_RDONLY 56 tools/perf/util/probe-finder.c fd = open(path, O_RDONLY); O_RDONLY 121 tools/perf/util/srccode.c fd = open(fn, O_RDONLY); O_RDONLY 541 tools/perf/util/symbol-elf.c fd = open(filename, O_RDONLY); O_RDONLY 567 tools/perf/util/symbol-elf.c fd = open(filename, O_RDONLY); O_RDONLY 622 tools/perf/util/symbol-elf.c fd = open(filename, O_RDONLY); O_RDONLY 726 tools/perf/util/symbol-elf.c fd = open(name, O_RDONLY); O_RDONLY 1309 tools/perf/util/symbol-elf.c kcore->fd = open(filename, O_RDONLY); O_RDONLY 1811 tools/perf/util/symbol-elf.c from = open(from_filename, O_RDONLY); O_RDONLY 1815 tools/perf/util/symbol-elf.c to = open(to_filename, O_RDONLY); O_RDONLY 2236 tools/perf/util/symbol-elf.c fd = open(target, O_RDONLY); O_RDONLY 231 tools/perf/util/symbol-minimal.c fd = open(filename, O_RDONLY); O_RDONLY 257 tools/perf/util/symbol-minimal.c int fd = open(name, O_RDONLY); O_RDONLY 1294 tools/perf/util/symbol.c fd = open(kcore_filename, O_RDONLY); O_RDONLY 1920 tools/perf/util/symbol.c int fd = open(file, O_RDONLY); O_RDONLY 85 tools/perf/util/synthetic-events.c fd = open(filename, O_RDONLY); O_RDONLY 51 tools/perf/util/trace-event-info.c fd = open(file, O_RDONLY); O_RDONLY 319 tools/perf/util/unwind-libunwind-local.c fd = open(dso->symsrc_filename, O_RDONLY); O_RDONLY 334 tools/perf/util/unwind-libunwind-local.c fd = open(debuglink, O_RDONLY); O_RDONLY 32 tools/perf/util/zlib.c input_fd = open(input, O_RDONLY); O_RDONLY 85 tools/perf/util/zlib.c int fd = open(input, O_RDONLY); O_RDONLY 70 tools/power/acpi/os_specific/service_layers/osunixmap.c fd = open(SYSTEM_MEMORY, O_RDONLY | O_BINARY); O_RDONLY 208 tools/power/acpi/tools/ec/ec_access.c int file_mode = O_RDONLY; O_RDONLY 216 tools/power/acpi/tools/ec/ec_access.c file_mode = O_RDONLY; O_RDONLY 42 tools/power/cpupower/debug/i386/centrino-decode.c fd = open(file, O_RDONLY); O_RDONLY 178 tools/power/cpupower/debug/i386/dump_psb.c fd = open("/dev/mem", O_RDONLY); O_RDONLY 39 tools/power/cpupower/debug/i386/powernow-k8-decode.c fd = open(file, O_RDONLY); O_RDONLY 63 tools/power/cpupower/lib/cpuidle.c fd = open(path, O_RDONLY); O_RDONLY 22 tools/power/cpupower/lib/cpupower.c fd = open(path, O_RDONLY); O_RDONLY 69 tools/power/cpupower/lib/cpupower.c fd = open(path, O_RDONLY); O_RDONLY 33 tools/power/cpupower/utils/helpers/msr.c fd = open(msr_file_name, O_RDONLY); O_RDONLY 23 tools/power/cpupower/utils/helpers/sysfs.c fd = open(path, O_RDONLY); O_RDONLY 70 tools/power/cpupower/utils/helpers/sysfs.c fd = open(path, O_RDONLY); O_RDONLY 134 tools/power/cpupower/utils/helpers/sysfs.c fd = open(path, O_RDONLY); O_RDONLY 375 tools/power/x86/turbostat/turbostat.c fd = open(pathname, O_RDONLY); O_RDONLY 633 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c fd = open(pathname, O_RDONLY); O_RDONLY 328 tools/spi/spidev_test.c tx_fd = open(filename, O_RDONLY); O_RDONLY 53 tools/testing/selftests/bpf/cgroup_helpers.c fd = open(path, O_RDONLY); O_RDONLY 229 tools/testing/selftests/bpf/cgroup_helpers.c fd = open(cgroup_path, O_RDONLY); O_RDONLY 94 tools/testing/selftests/bpf/get_cgroup_id_user.c efd = open(buf, O_RDONLY, 0); O_RDONLY 156 tools/testing/selftests/bpf/prog_tests/send_signal.c efd = open(id_path, O_RDONLY, 0); O_RDONLY 22 tools/testing/selftests/bpf/prog_tests/task_fd_query_tp.c efd = open(buf, O_RDONLY, 0); O_RDONLY 21 tools/testing/selftests/bpf/prog_tests/tp_attach_query.c efd = open(buf, O_RDONLY, 0); O_RDONLY 81 tools/testing/selftests/bpf/test_lirc_mode2_user.c inputfd = open(argv[2], O_RDONLY | O_NONBLOCK); O_RDONLY 203 tools/testing/selftests/bpf/test_progs.c sysctl_fd = open(jit_sysctl, 0, O_RDONLY); O_RDONLY 1773 tools/testing/selftests/bpf/test_sockmap.c cg_fd = open(optarg, O_DIRECTORY, O_RDONLY); O_RDONLY 55 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 66 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 77 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 98 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 135 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 156 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 183 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 199 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 241 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 283 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 338 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 387 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 429 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 465 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 504 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 543 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 578 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 649 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 809 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 888 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 958 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 991 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1035 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1076 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1117 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1159 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1204 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1249 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1300 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1347 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1364 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1372 tools/testing/selftests/bpf/test_sysctl.c .open_flags = O_RDONLY, O_RDONLY 1429 tools/testing/selftests/bpf/test_sysctl.c fd = open(sysctl_path, O_RDONLY | O_CLOEXEC); O_RDONLY 1496 tools/testing/selftests/bpf/test_sysctl.c if (test->open_flags == O_RDONLY) { O_RDONLY 22 tools/testing/selftests/bpf/urandom_read.c int fd = open("/dev/urandom", O_RDONLY); O_RDONLY 156 tools/testing/selftests/capabilities/test_execve.c int from = openat(fromfd, fromname, O_RDONLY); O_RDONLY 224 tools/testing/selftests/capabilities/test_execve.c int ourpath_fd = open(our_path, O_RDONLY | O_DIRECTORY); O_RDONLY 24 tools/testing/selftests/cgroup/cgroup_util.c fd = open(path, O_RDONLY); O_RDONLY 20 tools/testing/selftests/efivarfs/open-unlink.c fd = open(path, O_RDONLY); O_RDONLY 51 tools/testing/selftests/efivarfs/open-unlink.c fd = open(path, O_RDONLY); O_RDONLY 115 tools/testing/selftests/efivarfs/open-unlink.c fd = open(path, O_RDONLY); O_RDONLY 140 tools/testing/selftests/exec/execveat.c int in_fd = open_or_die(src, O_RDONLY); O_RDONLY 192 tools/testing/selftests/exec/execveat.c fd = open(longpath, O_RDONLY); O_RDONLY 228 tools/testing/selftests/exec/execveat.c int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); O_RDONLY 230 tools/testing/selftests/exec/execveat.c O_DIRECTORY|O_RDONLY); O_RDONLY 231 tools/testing/selftests/exec/execveat.c int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); O_RDONLY 232 tools/testing/selftests/exec/execveat.c int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); O_RDONLY 233 tools/testing/selftests/exec/execveat.c int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); O_RDONLY 234 tools/testing/selftests/exec/execveat.c int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); O_RDONLY 235 tools/testing/selftests/exec/execveat.c int fd = open_or_die("execveat", O_RDONLY); O_RDONLY 236 tools/testing/selftests/exec/execveat.c int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); O_RDONLY 237 tools/testing/selftests/exec/execveat.c int fd_symlink = open_or_die("execveat.symlink", O_RDONLY); O_RDONLY 238 tools/testing/selftests/exec/execveat.c int fd_denatured = open_or_die("execveat.denatured", O_RDONLY); O_RDONLY 240 tools/testing/selftests/exec/execveat.c O_RDONLY|O_PATH); O_RDONLY 241 tools/testing/selftests/exec/execveat.c int fd_script = open_or_die("script", O_RDONLY); O_RDONLY 242 tools/testing/selftests/exec/execveat.c int fd_ephemeral = open_or_die("execveat.ephemeral", O_RDONLY); O_RDONLY 244 tools/testing/selftests/exec/execveat.c O_RDONLY|O_PATH); O_RDONLY 245 tools/testing/selftests/exec/execveat.c int fd_script_ephemeral = open_or_die("script.ephemeral", O_RDONLY); O_RDONLY 246 tools/testing/selftests/exec/execveat.c int fd_cloexec = open_or_die("execveat", O_RDONLY|O_CLOEXEC); O_RDONLY 247 tools/testing/selftests/exec/execveat.c int fd_script_cloexec = open_or_die("script", O_RDONLY|O_CLOEXEC); O_RDONLY 172 tools/testing/selftests/filesystems/binderfs/binderfs_test.c fd = open("/dev/binderfs/binder-control", O_RDONLY | O_CLOEXEC); O_RDONLY 196 tools/testing/selftests/filesystems/binderfs/binderfs_test.c fd = open("/dev/binderfs/my-binder", O_CLOEXEC | O_RDONLY); O_RDONLY 26 tools/testing/selftests/filesystems/dnotify_test.c fd = open(".", O_RDONLY); O_RDONLY 43 tools/testing/selftests/intel_pstate/aperf.c fd = open(msr_file_name, O_RDONLY); O_RDONLY 29 tools/testing/selftests/intel_pstate/msr.c fd = open(msr_file_name, O_RDONLY); O_RDONLY 22 tools/testing/selftests/kvm/lib/elf.c fd = open(filename, O_RDONLY); O_RDONLY 122 tools/testing/selftests/kvm/lib/elf.c fd = open(filename, O_RDONLY); O_RDONLY 52 tools/testing/selftests/kvm/lib/kvm_util.c kvm_fd = open(KVM_DEV_PATH, O_RDONLY); O_RDONLY 776 tools/testing/selftests/kvm/lib/kvm_util.c dev_fd = open(KVM_DEV_PATH, O_RDONLY); O_RDONLY 726 tools/testing/selftests/kvm/lib/x86_64/processor.c kvm_fd = open(KVM_DEV_PATH, O_RDONLY); O_RDONLY 66 tools/testing/selftests/memfd/fuse_mnt.c if ((fi->flags & 3) != O_RDONLY) O_RDONLY 261 tools/testing/selftests/memfd/fuse_test.c fd = open(argv[1], O_RDONLY | O_CLOEXEC); O_RDONLY 947 tools/testing/selftests/memfd/memfd_test.c fd = mfd_assert_open(fd2, O_RDONLY, 0); O_RDONLY 131 tools/testing/selftests/net/ipv6_flowlabel.c fd = open("/proc/sys/net/ipv6/auto_flowlabels", O_RDONLY); O_RDONLY 763 tools/testing/selftests/net/psock_tpacket.c fd = open("/proc/kallsyms", O_RDONLY); O_RDONLY 172 tools/testing/selftests/net/tls.c int filefd = open("/proc/self/exe", O_RDONLY); O_RDONLY 182 tools/testing/selftests/net/tls.c int filefd = open("/proc/self/exe", O_RDONLY); O_RDONLY 56 tools/testing/selftests/nsfs/owner.c ns = open(path, O_RDONLY); O_RDONLY 56 tools/testing/selftests/nsfs/pidns.c ns = open(path, O_RDONLY); O_RDONLY 52 tools/testing/selftests/pidfd/pidfd_wait.c pidfd = open("/proc/self", O_DIRECTORY | O_RDONLY | O_CLOEXEC); O_RDONLY 65 tools/testing/selftests/pidfd/pidfd_wait.c pidfd = open("/dev/null", O_RDONLY | O_CLOEXEC); O_RDONLY 79 tools/testing/selftests/powerpc/dscr/dscr.h fd = open(DSCR_DEFAULT, O_RDONLY); O_RDONLY 323 tools/testing/selftests/powerpc/ptrace/core-pkey.c fd = open(filename[i], O_RDONLY); O_RDONLY 34 tools/testing/selftests/powerpc/utils.c fd = open("/proc/self/auxv", O_RDONLY); O_RDONLY 139 tools/testing/selftests/powerpc/utils.c if ((fd = open(path, O_RDONLY)) < 0) O_RDONLY 32 tools/testing/selftests/proc/fd-002-posix-eq.c fd0 = open("/", O_DIRECTORY|O_RDONLY); O_RDONLY 36 tools/testing/selftests/proc/fd-002-posix-eq.c fd1 = open(buf, O_RDONLY); O_RDONLY 40 tools/testing/selftests/proc/fd-002-posix-eq.c fd2 = open(buf, O_RDONLY); O_RDONLY 48 tools/testing/selftests/proc/fd-003-kthread.c dir_fd = open(buf, O_RDONLY|O_DIRECTORY); O_RDONLY 56 tools/testing/selftests/proc/fd-003-kthread.c fd = openat(dir_fd, "stat", O_RDONLY); O_RDONLY 90 tools/testing/selftests/proc/fd-003-kthread.c fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); O_RDONLY 45 tools/testing/selftests/proc/proc-loadavg-001.c fd = open("/proc/loadavg" , O_RDONLY); O_RDONLY 205 tools/testing/selftests/proc/proc-pid-vm.c fd1 = open(buf, O_RDONLY|O_CLOEXEC); O_RDONLY 269 tools/testing/selftests/proc/proc-pid-vm.c if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) { O_RDONLY 321 tools/testing/selftests/proc/proc-pid-vm.c fd = open(buf, O_RDONLY); O_RDONLY 340 tools/testing/selftests/proc/proc-pid-vm.c fd = open(buf, O_RDONLY); O_RDONLY 396 tools/testing/selftests/proc/proc-pid-vm.c fd = open(buf, O_RDONLY); O_RDONLY 432 tools/testing/selftests/proc/proc-pid-vm.c fd = open(buf, O_RDONLY); O_RDONLY 54 tools/testing/selftests/proc/proc-self-map-files-001.c fd = open("/dev/zero", O_RDONLY); O_RDONLY 60 tools/testing/selftests/proc/proc-self-map-files-002.c fd = open("/dev/zero", O_RDONLY); O_RDONLY 38 tools/testing/selftests/proc/proc-self-syscall.c fd = open("/proc/self/syscall", O_RDONLY); O_RDONLY 27 tools/testing/selftests/proc/proc-self-wchan.c fd = open("/proc/self/wchan", O_RDONLY); O_RDONLY 31 tools/testing/selftests/proc/proc-uptime-001.c fd = open("/proc/uptime", O_RDONLY); O_RDONLY 60 tools/testing/selftests/proc/proc-uptime-002.c fd = open("/proc/uptime", O_RDONLY); O_RDONLY 45 tools/testing/selftests/proc/read.c fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); O_RDONLY 107 tools/testing/selftests/proc/read.c fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); O_RDONLY 95 tools/testing/selftests/proc/setns-dcache.c nsfd = open(buf, O_RDONLY); O_RDONLY 102 tools/testing/selftests/proc/setns-dcache.c (void)open("/proc/net/unix", O_RDONLY); O_RDONLY 116 tools/testing/selftests/proc/setns-dcache.c fd = open("/proc/net/unix", O_RDONLY); O_RDONLY 94 tools/testing/selftests/proc/setns-sysvipc.c nsfd = open(buf, O_RDONLY); O_RDONLY 101 tools/testing/selftests/proc/setns-sysvipc.c (void)open("/proc/sysvipc/shm", O_RDONLY); O_RDONLY 115 tools/testing/selftests/proc/setns-sysvipc.c fd = open("/proc/sysvipc/shm", O_RDONLY); O_RDONLY 31 tools/testing/selftests/rtc/rtctest.c self->fd = open(rtc_file, O_RDONLY); O_RDONLY 41 tools/testing/selftests/rtc/setdate.c fd = open(rtc, O_RDONLY); O_RDONLY 653 tools/testing/selftests/seccomp/seccomp_bpf.c fd = open("/dev/zero", O_RDONLY); O_RDONLY 47 tools/testing/selftests/timers/clocksource-switch.c fd = open("/sys/devices/system/clocksource/clocksource0/available_clocksource", O_RDONLY); O_RDONLY 79 tools/testing/selftests/timers/clocksource-switch.c fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_RDONLY); O_RDONLY 66 tools/testing/selftests/timers/mqueue-lat.c q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); O_RDONLY 46 tools/testing/selftests/timers/rtcpie.c fd = open(rtc, O_RDONLY); O_RDONLY 62 tools/testing/selftests/vm/compaction_test.c O_RDONLY | O_NONBLOCK); O_RDONLY 84 tools/testing/selftests/vm/transhuge-stress.c pagemap_fd = open("/proc/self/pagemap", O_RDONLY); O_RDONLY 819 tools/testing/selftests/x86/protection_keys.c fd = open("/sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages", O_RDONLY); O_RDONLY 975 tools/testing/selftests/x86/protection_keys.c int test_fd = open("/etc/passwd", O_RDONLY); O_RDONLY 46 tools/usb/usbip/libsrc/usbip_host_common.c fd = open(status_attr_path, O_RDONLY); O_RDONLY 36 tools/virtio/virtio-trace/trace-agent-ctl.c ctl_fd = open(ctl_path, O_RDONLY); O_RDONLY 49 tools/virtio/virtio-trace/trace-agent-rw.c rw_ti->in_fd = open(in_path, O_RDONLY); O_RDONLY 788 tools/vm/page-types.c kpageflags_fd = checked_open(opt_kpageflags, O_RDONLY); O_RDONLY 894 tools/vm/page-types.c pagemap_fd = checked_open(buf, O_RDONLY); O_RDONLY 981 tools/vm/page-types.c fd = checked_open(name, O_RDONLY|O_NOATIME|O_NOFOLLOW); O_RDONLY 1067 tools/vm/page-types.c kpageflags_fd = checked_open(opt_kpageflags, O_RDONLY); O_RDONLY 1068 tools/vm/page-types.c pagemap_fd = checked_open("/proc/self/pagemap", O_RDONLY); O_RDONLY 1327 tools/vm/page-types.c kpagecgroup_fd = checked_open(PROC_KPAGECGROUP, O_RDONLY); O_RDONLY 1330 tools/vm/page-types.c kpagecount_fd = checked_open(PROC_KPAGECOUNT, O_RDONLY); O_RDONLY 311 usr/gen_init_cpio.c file = open (location, O_RDONLY);