| /linux/tools/perf/tests/ |
| H A D | fdarray.c | 42 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter() 49 fdarray__init_revents(fda, POLLHUP); in test__fdarray__filter() 50 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter() 57 fdarray__init_revents(fda, POLLHUP); in test__fdarray__filter() 62 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter() 69 fdarray__init_revents(fda, POLLHUP); in test__fdarray__filter() 75 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter() 83 fdarray__init_revents(fda, POLLHUP); in test__fdarray__filter() 96 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__add() 108 if (fda->entries[2].revents != POLLHUP) { in test__fdarray__add() [all...] |
| H A D | builtin-test.c | 926 .events = POLLIN | POLLERR | POLLHUP | POLLNVAL, 1099 if (revents & (POLLHUP | POLLERR | POLLNVAL)) { 1171 pfds[num_pfds].events = POLLIN | POLLERR | POLLHUP | POLLNVAL;
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_info_test.c | 212 ASSERT_TRUE(!!(fds.revents & POLLHUP)); in TEST_F() 289 if (fds.revents & POLLHUP) in TEST_F() 356 ASSERT_TRUE(!!(fds.revents & POLLHUP)); in TEST_F() 469 if (fds.revents & POLLHUP) in TEST_F() 489 fds.events = POLLHUP; in TEST_F() 494 ASSERT_TRUE(!!(fds.revents & POLLHUP)); in TEST_F() 532 ASSERT_FALSE(!!(fds.revents & POLLHUP)); in TEST_F() 625 if (fds.revents & POLLHUP) in TEST_F() 636 fds.events = POLLHUP; in TEST_F() 641 ASSERT_TRUE(!!(fds.revents & POLLHUP)); in TEST_F() [all...] |
| /linux/include/uapi/asm-generic/ |
| H A D | poll.h | 10 #define POLLHUP 0x0010 macro
|
| /linux/samples/uhid/ |
| H A D | uhid-example.c | 441 if (pfds[0].revents & POLLHUP) { in main() 445 if (pfds[1].revents & POLLHUP) { in main()
|
| /linux/tools/testing/vsock/ |
| H A D | vsock_perf.c | 208 POLLHUP | POLLRDHUP; in run_receiver() 238 if (fds.revents & (POLLHUP | POLLRDHUP)) in run_receiver()
|
| H A D | vsock_test.c | 1554 POLLRDHUP | POLLHUP; in test_stream_credit_update_test()
|
| /linux/samples/nitro_enclaves/ |
| H A D | ne_ioctl_sample.c | 206 fds[0].events = POLLIN | POLLERR | POLLHUP; in ne_poll_enclave_fd() 230 if (fds[0].revents & POLLHUP) { in ne_poll_enclave_fd()
|
| /linux/tools/testing/selftests/hid/ |
| H A D | hidraw.c | 172 ASSERT_TRUE(pfds[0].revents & POLLHUP);
|
| /linux/tools/perf/ |
| H A D | builtin-daemon.c | 1306 sock_pos = fdarray__add(&fda, sock_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start() 1310 file_pos = fdarray__add(&fda, conf_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start() 1314 signal_pos = fdarray__add(&fda, signal_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start()
|
| H A D | builtin-record.c | 1260 POLLIN | POLLERR | POLLHUP, fdarray_flag__nonfilterable); in record__alloc_thread_data() 1803 if (fdarray__filter(pollfd, POLLERR | POLLHUP, in record__init_features() 1808 if (pollfd->entries[ctlfd_pos].revents & POLLHUP) { in record__init_features() 2840 if (fdarray__filter(&thread->pollfd, POLLERR | POLLHUP, in __cmd_record()
|
| H A D | builtin-trace.c | 4986 if (evlist__filter_pollfd(evlist, POLLERR | POLLHUP | POLLNVAL) == 0) in trace__fprintf_total_summary()
|
| /linux/drivers/ptp/ |
| H A D | ptp_vmclock.c | 458 return POLLHUP; in vmclock_miscdev_poll()
|
| /linux/tools/lib/perf/ |
| H A D | evlist.c | 435 int pos = fdarray__add(&evlist->pollfd, fd, revent | POLLERR | POLLHUP, flags); in perf_evlist__add_pollfd() 584 * I.e. we can get the POLLHUP meaning that the fd doesn't exist in mmap_per_evsel()
|
| /linux/io_uring/ |
| H A D | poll.c | 332 if ((req->cqe.res & (POLLHUP | POLLRDHUP)) && v != 1) { in io_poll_check_events()
|
| /linux/tools/testing/selftests/seccomp/ |
| H A D | seccomp_bpf.c | 4010 pollfd.events = POLLHUP; in TEST() 4013 EXPECT_GT((pollfd.revents & POLLHUP) ?: 0, 0); in TEST() 4153 pollfd.events = POLLHUP; in TEST() 4156 EXPECT_GT((pollfd.revents & POLLHUP) ?: 0, 0); in get_next_fd()
|
| /linux/tools/perf/util/ |
| H A D | evlist.c | 2597 if (entries[ctlfd_pos].revents & (POLLHUP | POLLERR)) in evlist__warn_user_requested_cpus()
|