/linux-master/tools/testing/selftests/timens/ |
H A D | gettime_perf.c | 84 nsfd = open("/proc/self/ns/time_for_children", O_RDONLY);
|
H A D | clock_nanosleep.c | 132 nsfd = open("/proc/self/ns/time_for_children", O_RDONLY);
|
/linux-master/tools/testing/selftests/proc/ |
H A D | proc-subset-pid.c | 117 int fd = open("/proc/cpuinfo", O_RDONLY);
|
/linux-master/include/uapi/asm-generic/ |
H A D | fcntl.h | 20 #define O_RDONLY 00000000 macro
|
/linux-master/tools/include/uapi/asm-generic/ |
H A D | fcntl.h | 20 #define O_RDONLY 00000000 macro
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | task_fd_query_tp.c | 27 efd = open(buf, O_RDONLY, 0);
|
/linux-master/samples/pfsm/ |
H A D | pfsm-wakeup.c | 38 fd_rtc = open(RTC_A, O_RDONLY);
|
/linux-master/tools/testing/selftests/thermal/intel/power_floor/ |
H A D | power_floor_test.c | 68 fd = open(POWER_FLOOR_STATUS_ATTRIBUTE, O_RDONLY);
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | cgroup_helpers.c | 71 fd = open(path, O_RDONLY); 367 fd = open(CGROUP_MOUNT_PATH, O_RDONLY); 415 fd = open(cgroup_path, O_RDONLY); 706 return open(cgroup_workdir, O_RDONLY);
|
H A D | trace_helpers.c | 209 trace_fd = open(TRACEFS_PIPE, O_RDONLY, 0); 211 trace_fd = open(DEBUGFS_PIPE, O_RDONLY, 0); 345 fd = open(path, O_RDONLY | O_CLOEXEC);
|
H A D | test_lirc_mode2_user.c | 82 inputfd = open(argv[2], O_RDONLY | O_NONBLOCK);
|
/linux-master/tools/lib/api/fs/ |
H A D | fs.c | 296 int fd = open(filename, O_RDONLY), err = -1; 314 int fd = open(filename, O_RDONLY), err = -1; 354 io.fd = open(filename, O_RDONLY); 460 io.fd = open(path, O_RDONLY);
|
/linux-master/tools/testing/selftests/landlock/ |
H A D | base_test.c | 305 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); 307 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); 317 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); 320 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
|
/linux-master/kernel/power/ |
H A D | user.c | 72 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { 75 data->mode = O_RDONLY; 125 pm_notifier_call_chain(data->mode == O_RDONLY ? 306 if (data->mode != O_RDONLY || !data->frozen || data->ready) {
|
/linux-master/tools/power/cpupower/utils/helpers/ |
H A D | sysfs.c | 23 fd = open(path, O_RDONLY); 70 fd = open(path, O_RDONLY); 134 fd = open(path, O_RDONLY);
|
/linux-master/tools/testing/selftests/move_mount_set_group/ |
H A D | move_mount_set_group_test.c | 324 ret = open("/proc/self/ns/user", O_RDONLY); 329 ret = open("/proc/self/ns/mnt", O_RDONLY); 334 ret = open(SET_GROUP_A, O_RDONLY);
|
/linux-master/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 91 fd = open(device_path, O_RDONLY | O_CLOEXEC); 114 fd = open(device_path, O_CLOEXEC | O_RDONLY); 161 fd = open(device_path, O_CLOEXEC | O_RDONLY); 424 fd = open(device_path, O_RDONLY | O_CLOEXEC); 441 fds[i] = open(device_path, O_RDONLY | O_CLOEXEC);
|
/linux-master/tools/testing/selftests/core/ |
H A D | close_range_test.c | 34 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); 98 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); 187 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); 226 fd = open("/dev/null", O_RDONLY); 294 fd = open("/dev/null", O_RDONLY);
|
/linux-master/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 93 fd = open("/proc/self/ns/time_for_children", O_RDONLY | O_CLOEXEC); 144 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC); 237 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC); 250 self->child_nsfds1[i] = open(p, O_RDONLY | O_CLOEXEC); 263 self->child_nsfds2[i] = open(p, O_RDONLY | O_CLOEXEC); 311 return open(path, O_RDONLY | O_CLOEXEC);
|
/linux-master/arch/alpha/boot/tools/ |
H A D | mkbb.c | 108 fd = open(argv[2], O_RDONLY);
|
/linux-master/arch/powerpc/boot/ |
H A D | mktree.c | 82 if ((in_fd = open(argv[1], O_RDONLY)) < 0) {
|
/linux-master/tools/laptop/dslm/ |
H A D | dslm.c | 147 if (!(fd = open(disk, O_RDONLY|O_NONBLOCK))) {
|
/linux-master/tools/virtio/virtio-trace/ |
H A D | trace-agent-rw.c | 49 rw_ti->in_fd = open(in_path, O_RDONLY);
|
/linux-master/tools/testing/selftests/intel_pstate/ |
H A D | aperf.c | 47 fd = open(msr_file_name, O_RDONLY);
|
/linux-master/samples/fanotify/ |
H A D | fs-monitor.c | 123 fd = fanotify_init(FAN_CLASS_NOTIF|FAN_REPORT_FID, O_RDONLY);
|