Home
last modified time | relevance | path

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

12

/tools/include/uapi/asm-generic/
Dfcntl.h38 #ifndef O_NONBLOCK
39 #define O_NONBLOCK 00004000 macro
96 #define O_NDELAY O_NONBLOCK
/tools/testing/selftests/bpf/
Dtest_lirc_mode2_user.c69 lircfd = open(argv[1], O_RDWR | O_NONBLOCK); in main()
82 inputfd = open(argv[2], O_RDONLY | O_NONBLOCK); in main()
/tools/testing/selftests/kvm/lib/
Duserfaultfd_util.c134 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in uffd_setup_demand_paging()
151 ret = pipe2(uffd_desc->pipefds, O_CLOEXEC | O_NONBLOCK); in uffd_setup_demand_paging()
/tools/testing/selftests/mm/
Dcompaction_test.c63 O_RDONLY | O_NONBLOCK); in prereq()
97 fd = open("/proc/sys/vm/nr_hugepages", O_RDWR | O_NONBLOCK); in check_compaction()
Duffd-common.h41 #define UFFD_FLAGS (O_CLOEXEC | O_NONBLOCK | UFFD_USER_MODE_ONLY)
Duffd-stress.c282 fcntl(uffd, F_SETFL, uffd_flags | O_NONBLOCK); in userfaultfd_stress()
284 fcntl(uffd, F_SETFL, uffd_flags & ~O_NONBLOCK); in userfaultfd_stress()
Dhugepage-mremap.c68 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in register_region_with_uffd()
/tools/testing/selftests/pidfd/
Dpidfd.h50 #define PIDFD_NONBLOCK O_NONBLOCK
Dpidfd_wait.c198 ASSERT_GT((flags & O_NONBLOCK), 0); in TEST()
216 ASSERT_EQ(fcntl(pidfd, F_SETFL, (flags & ~O_NONBLOCK)), 0); in TEST()
/tools/testing/selftests/bpf/prog_tests/
Dtrace_vprintk.c39 fcntl(fileno(fp), F_SETFL, O_NONBLOCK); in serial_test_trace_vprintk()
Dtrace_printk.c46 fcntl(fileno(fp), F_SETFL, O_NONBLOCK); in serial_test_trace_printk()
Dlwt_helpers.h60 err = fcntl(fd, F_SETFL, O_NONBLOCK); in open_tuntap()
/tools/perf/trace/beauty/
Dopen_flags.c53 #ifdef O_NONBLOCK in open__scnprintf_flags()
/tools/testing/selftests/netfilter/
Dconnect_close.c45 fcntl(s, F_SETFL, O_NONBLOCK); in do_connect()
/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.c108 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/testing/selftests/proc/
Dread.c45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg()
/tools/laptop/dslm/
Ddslm.c147 if (!(fd = open(disk, O_RDONLY|O_NONBLOCK))) { in main()
/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.c96 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/powerpc/tm/
Dtm-signal-pagefault.c148 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in setup_uf_mem()
/tools/wmi/
Ddell-smbios-example.c47 fd = open(ioctl_devfs, O_NONBLOCK); in run_wmi_smbios_cmd()

12