Home
last modified time | relevance | path

Searched refs:O_NONBLOCK (Results 1 – 25 of 41) sorted by relevance

12

/tools/include/uapi/asm-generic/
Dfcntl.h37 #ifndef O_NONBLOCK
38 #define O_NONBLOCK 00004000 macro
96 #define O_NDELAY O_NONBLOCK
/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c68 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/
Dcompaction_test.c63 O_RDONLY | O_NONBLOCK); in prereq()
95 fd = open("/proc/sys/vm/nr_hugepages", O_RDWR | O_NONBLOCK); in check_compaction()
Duserfaultfd.c357 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/
Dpidfd.h50 #define PIDFD_NONBLOCK O_NONBLOCK
Dpidfd_wait.c189 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/
Dtrace_printk.c43 fcntl(fileno(fp), F_SETFL, O_NONBLOCK); in test_trace_printk()
/tools/perf/trace/beauty/
Dopen_flags.c53 #ifdef O_NONBLOCK in open__scnprintf_flags()
/tools/include/nolibc/
Darch-arm.h19 #define O_NONBLOCK 0x800 macro
Darch-i386.h19 #define O_NONBLOCK 0x800 macro
Darch-aarch64.h19 #define O_NONBLOCK 0x800 macro
Darch-mips.h15 #define O_NONBLOCK 0x0080 macro
Darch-riscv.h19 #define O_NONBLOCK 0x800 macro
Darch-x86_64.h19 #define O_NONBLOCK 0x800 macro
/tools/power/acpi/tools/acpidbg/
Dacpidbg.c422 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/
Dbp_signal_overflow.c103 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in test__bp_signal_overflow()
Dbp_signal.c131 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC); in __event()
/tools/virtio/virtio-trace/
Dtrace-agent-rw.c67 if (pipe2(data_pipe, O_NONBLOCK) < 0) { in rw_thread_init()
/tools/laptop/dslm/
Ddslm.c147 if (!(fd = open(disk, O_RDONLY|O_NONBLOCK))) { in main()
/tools/testing/selftests/proc/
Dread.c45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg()
/tools/testing/selftests/net/af_unix/
Dtest_unix_oob.c42 flags &= ~O_NONBLOCK; in set_filemode()
44 flags |= O_NONBLOCK; in set_filemode()
/tools/testing/selftests/ir/
Dir_loopback.c87 fd = open(buf, O_RDWR | O_NONBLOCK); in lirc_open()
/tools/testing/selftests/mqueue/
Dmq_perf_tests.c294 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/
Ddemand_paging_test.c247 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in setup_demand_paging()
351 O_CLOEXEC | O_NONBLOCK); in run_test()
/tools/wmi/
Ddell-smbios-example.c47 fd = open(ioctl_devfs, O_NONBLOCK); in run_wmi_smbios_cmd()

12