/tools/include/uapi/asm-generic/ |
D | fcntl.h | 37 #ifndef O_NONBLOCK 38 #define O_NONBLOCK 00004000 macro 96 #define O_NDELAY O_NONBLOCK
|
/tools/testing/selftests/bpf/ |
D | test_lirc_mode2_user.c | 68 lircfd = open(argv[1], O_RDWR | O_NONBLOCK); in main() 81 inputfd = open(argv[2], O_RDONLY | O_NONBLOCK); in main()
|
/tools/testing/selftests/vm/ |
D | compaction_test.c | 63 O_RDONLY | O_NONBLOCK); in prereq() 95 fd = open("/proc/sys/vm/nr_hugepages", O_RDWR | O_NONBLOCK); in check_compaction()
|
D | userfaultfd.c | 357 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK | UFFD_USER_MODE_ONLY); in userfaultfd_open() 466 if (pipe2(&pipefd[cpu * 2], O_CLOEXEC | O_NONBLOCK)) in uffd_test_ctx_init_ext() 1126 fcntl(uffd, F_SETFL, uffd_flags | O_NONBLOCK); in userfaultfd_events_test() 1180 fcntl(uffd, F_SETFL, uffd_flags | O_NONBLOCK); in userfaultfd_sig_test() 1481 fcntl(uffd, F_SETFL, uffd_flags | O_NONBLOCK); in userfaultfd_stress() 1483 fcntl(uffd, F_SETFL, uffd_flags & ~O_NONBLOCK); in userfaultfd_stress()
|
/tools/testing/selftests/pidfd/ |
D | pidfd.h | 50 #define PIDFD_NONBLOCK O_NONBLOCK
|
D | pidfd_wait.c | 189 ASSERT_GT((flags & O_NONBLOCK), 0); in TEST() 207 ASSERT_EQ(fcntl(pidfd, F_SETFL, (flags & ~O_NONBLOCK)), 0); in TEST()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | trace_printk.c | 43 fcntl(fileno(fp), F_SETFL, O_NONBLOCK); in test_trace_printk()
|
/tools/perf/trace/beauty/ |
D | open_flags.c | 53 #ifdef O_NONBLOCK in open__scnprintf_flags()
|
/tools/include/nolibc/ |
D | arch-arm.h | 19 #define O_NONBLOCK 0x800 macro
|
D | arch-i386.h | 19 #define O_NONBLOCK 0x800 macro
|
D | arch-aarch64.h | 19 #define O_NONBLOCK 0x800 macro
|
D | arch-mips.h | 15 #define O_NONBLOCK 0x0080 macro
|
D | arch-riscv.h | 19 #define O_NONBLOCK 0x800 macro
|
D | arch-x86_64.h | 19 #define O_NONBLOCK 0x800 macro
|
/tools/power/acpi/tools/acpidbg/ |
D | acpidbg.c | 422 fd = open(acpi_aml_file_path, O_RDWR | O_NONBLOCK); in main() 428 acpi_aml_set_fl(STDIN_FILENO, O_NONBLOCK); in main() 429 acpi_aml_set_fl(STDOUT_FILENO, O_NONBLOCK); in main()
|
/tools/perf/tests/ |
D | bp_signal_overflow.c | 103 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in test__bp_signal_overflow()
|
D | bp_signal.c | 131 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in __event()
|
/tools/virtio/virtio-trace/ |
D | trace-agent-rw.c | 67 if (pipe2(data_pipe, O_NONBLOCK) < 0) { in rw_thread_init()
|
/tools/laptop/dslm/ |
D | dslm.c | 147 if (!(fd = open(disk, O_RDONLY|O_NONBLOCK))) { in main()
|
/tools/testing/selftests/proc/ |
D | read.c | 45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg()
|
/tools/testing/selftests/net/af_unix/ |
D | test_unix_oob.c | 42 flags &= ~O_NONBLOCK; in set_filemode() 44 flags |= O_NONBLOCK; in set_filemode()
|
/tools/testing/selftests/ir/ |
D | ir_loopback.c | 87 fd = open(buf, O_RDWR | O_NONBLOCK); in lirc_open()
|
/tools/testing/selftests/mqueue/ |
D | mq_perf_tests.c | 294 int flags = O_RDWR | O_EXCL | O_CREAT | O_NONBLOCK; in open_queue() 303 printf("\t\tmq_flags:\t\t\t%s\n", result.mq_flags & O_NONBLOCK ? in open_queue() 712 attr.mq_flags = O_NONBLOCK; in main()
|
/tools/testing/selftests/kvm/ |
D | demand_paging_test.c | 247 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in setup_demand_paging() 351 O_CLOEXEC | O_NONBLOCK); in run_test()
|
/tools/wmi/ |
D | dell-smbios-example.c | 47 fd = open(ioctl_devfs, O_NONBLOCK); in run_wmi_smbios_cmd()
|