/Linux-v5.4/tools/testing/selftests/exec/ |
D | execveat.c | 140 int in_fd = open_or_die(src, O_RDONLY); in exe_cp() 192 fd = open(longpath, O_RDONLY); in check_execveat_pathmax() 228 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests() 230 O_DIRECTORY|O_RDONLY); in run_tests() 231 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests() 232 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests() 233 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests() 234 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests() 235 int fd = open_or_die("execveat", O_RDONLY); in run_tests() 236 int fd_path = open_or_die("execveat", O_RDONLY|O_PATH); in run_tests() [all …]
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | test_sysctl.c | 55 .open_flags = O_RDONLY, 66 .open_flags = O_RDONLY, 77 .open_flags = O_RDONLY, 98 .open_flags = O_RDONLY, 135 .open_flags = O_RDONLY, 156 .open_flags = O_RDONLY, 183 .open_flags = O_RDONLY, 199 .open_flags = O_RDONLY, 241 .open_flags = O_RDONLY, 283 .open_flags = O_RDONLY, [all …]
|
D | cgroup_helpers.c | 53 fd = open(path, O_RDONLY); in enable_all_controllers() 229 fd = open(cgroup_path, O_RDONLY); in create_and_get_cgroup()
|
/Linux-v5.4/tools/testing/selftests/proc/ |
D | fd-002-posix-eq.c | 32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main() 36 fd1 = open(buf, O_RDONLY); in main() 40 fd2 = open(buf, O_RDONLY); in main()
|
D | setns-dcache.c | 95 nsfd = open(buf, O_RDONLY); in main() 102 (void)open("/proc/net/unix", O_RDONLY); in main() 116 fd = open("/proc/net/unix", O_RDONLY); in main()
|
D | setns-sysvipc.c | 94 nsfd = open(buf, O_RDONLY); in main() 101 (void)open("/proc/sysvipc/shm", O_RDONLY); in main() 115 fd = open("/proc/sysvipc/shm", O_RDONLY); in main()
|
D | proc-pid-vm.c | 205 fd1 = open(buf, O_RDONLY|O_CLOEXEC); in make_exe() 269 if (open("/", O_RDONLY|O_DIRECTORY|O_PATH) != 0) { in main() 321 fd = open(buf, O_RDONLY); in main() 340 fd = open(buf, O_RDONLY); in main() 396 fd = open(buf, O_RDONLY); in main() 432 fd = open(buf, O_RDONLY); in main()
|
D | fd-003-kthread.c | 48 dir_fd = open(buf, O_RDONLY|O_DIRECTORY); in kernel_thread_fd() 56 fd = openat(dir_fd, "stat", O_RDONLY); in kernel_thread_fd() 90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
|
D | read.c | 45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg() 107 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
|
D | proc-self-wchan.c | 27 fd = open("/proc/self/wchan", O_RDONLY); in main()
|
/Linux-v5.4/tools/testing/selftests/efivarfs/ |
D | open-unlink.c | 20 fd = open(path, O_RDONLY); in set_immutable() 51 fd = open(path, O_RDONLY); in get_immutable() 115 fd = open(path, O_RDONLY); in main()
|
/Linux-v5.4/samples/timers/ |
D | hpet_example.c | 89 fd = open(argv[0], O_RDONLY); in hpet_open_close() 109 fd = open(argv[0], O_RDONLY); in hpet_info() 149 fd = open(argv[0], O_RDONLY); in hpet_poll() 243 fd = open(argv[0], O_RDONLY); in hpet_fasync()
|
/Linux-v5.4/tools/perf/util/ |
D | zlib.c | 32 input_fd = open(input, O_RDONLY); in gzip_decompress_to_file() 85 int fd = open(input, O_RDONLY); in gzip_is_compressed()
|
/Linux-v5.4/samples/pidfd/ |
D | pidfd-metadata.c | 58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd() 105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
|
/Linux-v5.4/tools/testing/selftests/timers/ |
D | clocksource-switch.c | 47 fd = open("/sys/devices/system/clocksource/clocksource0/available_clocksource", O_RDONLY); in get_clocksources() 79 fd = open("/sys/devices/system/clocksource/clocksource0/current_clocksource", O_RDONLY); in get_cur_clocksource()
|
/Linux-v5.4/tools/bpf/bpftool/ |
D | cgroup.c | 189 cgroup_fd = open(path, O_RDONLY); in do_show() 237 cgroup_fd = open(fpath, O_RDONLY); in do_show_tree_fn() 387 cgroup_fd = open(argv[0], O_RDONLY); in do_attach() 445 cgroup_fd = open(argv[0], O_RDONLY); in do_detach()
|
/Linux-v5.4/tools/laptop/freefall/ |
D | freefall.c | 42 int fd = open(unload_heads_path, O_RDONLY); in valid_disk() 125 fd = open("/dev/freefall", O_RDONLY); in main()
|
/Linux-v5.4/kernel/power/ |
D | user.c | 68 if ((filp->f_flags & O_ACCMODE) == O_RDONLY) { in snapshot_open() 72 data->mode = O_RDONLY; in snapshot_open() 125 pm_notifier_call_chain(data->mode == O_RDONLY ? in snapshot_release() 253 if (data->mode != O_RDONLY || !data->frozen || data->ready) { in snapshot_ioctl()
|
/Linux-v5.4/tools/testing/selftests/kvm/lib/ |
D | elf.c | 22 fd = open(filename, O_RDONLY); in elfhdr_get() 122 fd = open(filename, O_RDONLY); in kvm_vm_elf_load()
|
/Linux-v5.4/fs/ecryptfs/ |
D | kthread.c | 133 flags |= IS_RDONLY(d_inode(lower_dentry)) ? O_RDONLY : O_RDWR; in ecryptfs_privileged_open() 137 if ((flags & O_ACCMODE) == O_RDONLY) { in ecryptfs_privileged_open()
|
/Linux-v5.4/tools/power/cpupower/utils/helpers/ |
D | sysfs.c | 23 fd = open(path, O_RDONLY); in sysfs_read_file() 70 fd = open(path, O_RDONLY); in sysfs_is_cpu_online() 134 fd = open(path, O_RDONLY); in sysfs_idlestate_read_file()
|
/Linux-v5.4/tools/power/cpupower/lib/ |
D | cpupower.c | 22 fd = open(path, O_RDONLY); in cpupower_read_sysfs() 69 fd = open(path, O_RDONLY); in cpupower_is_cpu_online()
|
/Linux-v5.4/tools/testing/selftests/intel_pstate/ |
D | msr.c | 29 fd = open(msr_file_name, O_RDONLY); in main()
|
/Linux-v5.4/tools/power/acpi/tools/ec/ |
D | ec_access.c | 208 int file_mode = O_RDONLY; in main() 216 file_mode = O_RDONLY; in main()
|
/Linux-v5.4/tools/testing/selftests/powerpc/ |
D | utils.c | 34 fd = open("/proc/self/auxv", O_RDONLY); in read_auxv() 139 if ((fd = open(path, O_RDONLY)) < 0) in read_debugfs_file()
|