Home
last modified time | relevance | path

Searched full:poll (Results 1 – 25 of 1388) sorted by relevance

12345678910>>...56

/freebsd/tools/regression/poll/
H A Dsockpoll.c9 #include <poll.h>
127 if (poll(&pfd0, 1, 0) == -1) in main()
128 err(1, "poll"); in main()
130 if (poll(&pfd1, 1, 0) == -1) in main()
131 err(1, "poll"); in main()
135 if (poll(&pfd0, 1, 0) == -1) in main()
136 err(1, "poll"); in main()
138 if (poll(&pfd1, 1, 0) == -1) in main()
139 err(1, "poll"); in main()
142 if (poll(&pfd1, 1, 0) == -1) in main()
[all …]
H A Dpipepoll.c2 #include <sys/poll.h>
63 printf("poll result %d expected %d. ", in report()
104 if ((res = poll(&pfd, 1, 0)) < 0) in child()
105 err(1, "poll"); in child()
122 if ((res = poll(&pfd, 1, 0)) < 0) in child()
123 err(1, "poll"); in child()
130 if ((res = poll(&pfd, 1, 0)) < 0) in child()
131 err(1, "poll"); in child()
135 if ((res = poll(&pfd, 1, 0)) < 0) in child()
136 err(1, "poll"); in child()
[all …]
/freebsd/contrib/ntp/html/
H A Dpoll.html6 <title>Poll Process</title>
10 <h3>Poll Process</h3>
15poll process sends NTP packets at intervals determined by the clock discipline algorithm. The pr…
16poll interval is managed by a heuristic algorithm developed over several years of experimentation.…
17poll process can send a burst of several packets at 2-s intervals. This is designed to reduce the …
18poll exponent and the minimum poll exponent as a power of 2. For instance, with the default minimu…
19 …even if a server is unreachable, the network load is no more than at the minimum poll interval.</p>
20poll interval, but is set to 0 as each packet is received. If the timer exceeds the <em>unreach th…
H A Ddiscipline.html24 …head. Operation is in two modes, phase-lock loop (PLL), which is used at poll intervals below the…
31poll interval described on the <a href="poll.html">Poll Program</a> page. However, in NTP symmetr…
33poll intervals are expressed as exponents of 2. By construction, the time constant exponent is fi…
34 … dynamics of the PLL are affected by the time constant and poll interval. At the default poll int…
36poll intervals has the same characteristic shape, but scaled differently in amplitude and time. T…
37poll interval, depends on the network time jitter and the oscillator frequency wander. Errors due…
45 … several updates before setting the system clock. As the default minimum poll interval in most co…
H A Dassoc.html27 <li class="inline"><a href="#poll">Poll Interval Management</a></li>
39 <p>Ordinarily, the program automatically manages the poll interval between the default minimum and …
53 …response is required, it is generally best to set the minimum and maximum poll intervals of each r…
59 <h4 id="poll">Poll Interval Management</h4>
60poll interval for maximum accuracy consistent with minimum network overhead. The algorithm measure…
61 <p>The default poll interval range is suitable for most conditions, but can be changed using option…
62 …n and reference implementation, the poll interval is expressed in log<sub>2</sub> units, properly …
63 … by a factor of two as the poll interval increases by a factor of four. The poll interval algorith…
64 <p>There is normally no need to change the poll limits, as the poll interval is managed automatical…
66 … 500 s. In these cases the expected errors can be further reduced using a poll exponent of 4 (16 s…
[all …]
H A Drate.html47poll rate control, (2) burst control, (3) average headway time and (4) guard time. The first two a…
52poll algorithm sends a burst of packets instead of a single packet at each poll opportunity. The N…
58poll field of the KoD packet to the greater of (a) the server MAH and (b) client packet poll field…
/freebsd/lib/libsys/
H A Dpoll.21 .\" $NetBSD: poll.2,v 1.3 1996/09/07 21:53:08 mycroft Exp $
34 .Nm poll
41 .Fn poll "struct pollfd fds[]" "nfds_t nfds" "int timeout"
51 .Fn poll
78 File descriptor to poll.
83 Events to poll for.
152 is INFTIM (-1), the poll blocks indefinitely.
156 .Fn poll
162 .Fn poll ,
170 .Fn poll .
[all …]
/freebsd/sys/contrib/device-tree/Bindings/serial/
H A Dpl011.yaml78 auto-poll:
83 poll-rate-ms:
85 Rate at which poll occurs when auto-poll is set.
89 poll-timeout-ms:
91 Poll timeout when auto-poll is set, default
110 poll-rate-ms: [ auto-poll ]
111 poll-timeout-ms: [ auto-poll ]
/freebsd/contrib/ldns/m4/
H A Dax_have_poll.m412 # This macro determines whether the system supports the poll I/O event
16 # [AX_CONFIG_FEATURE_ENABLE(poll)],
17 # [AX_CONFIG_FEATURE_DISABLE(poll)])
19 # [poll], [This platform supports poll(7)],
20 # [HAVE_POLL], [This platform supports poll(7).])
40 AC_MSG_CHECKING([for poll(2)])
44 [#include <poll.h>],
45 [int rc; rc = poll((struct pollfd *)(0), 0, 0);])],
60 #include <poll.h>
64 rc = poll((struct pollfd *)(0), 0, 0);
/freebsd/sys/sys/
H A Dpoll.h37 * This file is intended to be compatible with the traditional poll.h.
43 * This structure is passed as an array to poll(2).
46 int fd; /* which file descriptor to poll */
52 * Requestable events. If poll(2) finds any of these set, they are
58 * POLLIN includes all of normal, band and urgent data. Most poll handlers
79 #define POLLERR 0x0008 /* some poll error occurred */
89 * Request that poll() wait forever.
91 * by poll.h.
113 #include <ssp/poll.h>
117 int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);
/freebsd/tools/test/stress2/misc/
H A Dpoll.sh18 cat > /tmp/poll.py <<EOF
40 chmod +x /tmp/poll.py
42 log=/tmp/poll.log
44 cpuset -l 0 /tmp/poll.py > $log &
50 while pgrep -qf poll.py; do pkill -f poll.py; done
54 rm -f /tmp/poll.py $log
H A Dmkfifo7.sh29 # mkfifo(2), poll(2) with tmpfs(4) scenario.
66 #include <poll.h>
96 if ((n = poll(&pfd, 1, 0)) == -1)
97 err(1, "poll()");
110 if ((n = poll(&pfd, 1, 7000)) == -1)
111 err(1, "poll()");
124 if ((n = poll(&pfd, 1, 7000)) == -1)
125 err(1, "poll()");
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DPlaceSafepoints.cpp19 // - A "poll" is an explicit check in the generated code to determine if the
22 // routine will be parseable. The (gc & runtime specific) logic of a poll is
27 // implementation, this is done via the insertion of poll sites at method entry
29 // are necessary to ensure a finite period between poll sites. This is not
30 // because the poll itself is expensive in the generated code; it's not. Polls
35 // poll (or otherwise be inspected by the GC). If so, the entire stack
42 // executing code reaches a safepoint poll in a finite amount of time.
103 /// the function which require a safepoint poll to be inserted.
109 /// pointing at the branch) which need a poll inserted.
258 // Given we're inlining this inside of safepoint poll insertion, this in runImpl()
[all …]
/freebsd/contrib/libpcap/
H A Dieee80211.h128 "ps-poll", "rts", \
135 "data-cf-poll", "data-cf-ack-poll", \
137 "cf-poll", "cf-ack-poll", \
139 "qos-data-cf-poll", "qos-data-cf-ack-poll", \
141 "qos-cf-poll", "qos-cf-ack-poll" \
/freebsd/contrib/libpcap/testprogs/
H A Dselpolltest.c31 * Tests how select() and poll() behave on the selectable file descriptor
51 #include <poll.h>
109 mechanism = "poll() and pcap_dispatch()"; in main()
131 fprintf(stderr, "selpolltest: choose select (-s) or poll (-p), but not both\n"); in main()
135 fprintf(stderr, "selpolltest: timeout (-t) requires select (-s) or poll (-p)\n"); in main()
166 * We need either an FD on which to do select()/poll() in main()
168 * poll(). in main()
176 error("select()/poll() isn't supported on %s, even with a timeout", in main()
180 * As we won't be notified by select() or poll() in main()
283 status = poll(&fd, (selectable_fd == -1) ? 0 : 1, polltimeout); in main()
[all …]
/freebsd/crypto/openssh/
H A D.depend5 …nbsd-compat/bsd-statvfs.h openbsd-compat/bsd-waitpid.h openbsd-compat/bsd-poll.h openbsd-compat/fa…
6 …nbsd-compat/bsd-statvfs.h openbsd-compat/bsd-waitpid.h openbsd-compat/bsd-poll.h openbsd-compat/fa…
7 …nbsd-compat/bsd-statvfs.h openbsd-compat/bsd-waitpid.h openbsd-compat/bsd-poll.h openbsd-compat/fa…
8 …nbsd-compat/bsd-statvfs.h openbsd-compat/bsd-waitpid.h openbsd-compat/bsd-poll.h openbsd-compat/fa…
9 …nbsd-compat/bsd-statvfs.h openbsd-compat/bsd-waitpid.h openbsd-compat/bsd-poll.h openbsd-compat/fa…
10 …nbsd-compat/bsd-statvfs.h openbsd-compat/bsd-waitpid.h openbsd-compat/bsd-poll.h openbsd-compat/fa…
11 …nbsd-compat/bsd-statvfs.h openbsd-compat/bsd-waitpid.h openbsd-compat/bsd-poll.h openbsd-compat/fa…
12 …nbsd-compat/bsd-statvfs.h openbsd-compat/bsd-waitpid.h openbsd-compat/bsd-poll.h openbsd-compat/fa…
13 …nbsd-compat/bsd-statvfs.h openbsd-compat/bsd-waitpid.h openbsd-compat/bsd-poll.h openbsd-compat/fa…
14 …nbsd-compat/bsd-statvfs.h openbsd-compat/bsd-waitpid.h openbsd-compat/bsd-poll.h openbsd-compat/fa…
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/
H A DPlaceSafepoints.h19 // - A "poll" is an explicit check in the generated code to determine if the
22 // routine will be parseable. The (gc & runtime specific) logic of a poll is
27 // implementation, this is done via the insertion of poll sites at method entry
29 // are necessary to ensure a finite period between poll sites. This is not
30 // because the poll itself is expensive in the generated code; it's not. Polls
35 // poll (or otherwise be inspected by the GC). If so, the entire stack
42 // executing code reaches a safepoint poll in a finite amount of time.
/freebsd/sys/contrib/openzfs/lib/libspl/include/sys/
H A Dpoll.h28 * Compiling against musl correctly points out that including sys/poll.h is
31 * However, glibc, klibc and uclibc break this shim by including sys/poll.h
32 * from poll.h, so we add explicit exceptions for them.
37 #include_next <sys/poll.h>
39 #include <poll.h>
/freebsd/sys/contrib/device-tree/src/arm/microchip/
H A Dat91-natte.dtsi74 poll-interval = <20000>;
90 poll-interval = <20000>;
106 poll-interval = <20000>;
122 poll-interval = <20000>;
138 poll-interval = <20000>;
154 poll-interval = <20000>;
170 poll-interval = <20000>;
186 poll-interval = <20000>;
/freebsd/lib/libc/rpc/
H A Drpc_svc_calls.3161 .Xr poll 2
166 .Xr poll 2
172 .Xr poll 2
182 .Xr poll 2
219 .Xr poll 2
238 .Xr poll 2
259 .Xr poll 2 ,
/freebsd/tests/sys/kern/
H A Dprace.c22 #include <poll.h>
39 child(int rd, bool poll) in child() argument
58 ret = poll ? ppoll(NULL, 0, &timeout, &set0) : in child()
66 err(1, "p%s()", poll ? "poll" : "select"); in child()
84 prace(bool poll) in prace() argument
96 child(pd[1], poll); in prace()
/freebsd/contrib/ofed/libibverbs/man/
H A Dibv_get_cq_event.3111 /* Empty the CQ: poll all of the completions from the CQ (if any exist) */
115 fprintf(stderr, "Failed to poll completions from the CQ\en");
136 2. Poll the channel until there it has a completion event
151 * poll the channel until it has an event and sleep ms_timeout
159 rc = poll(&my_pollfd, 1, ms_timeout);
162 fprintf(stderr, "poll failed\en");
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_poll.c39 #include <poll.h>
54 (void)poll(&pfd, 1, 2000); in child1()
67 (void)poll(&pfd, 1, INFTIM); in child2()
81 (void)poll(&pfd, 1, INFTIM); in child3()
153 "Basis functionality test for poll(2)"); in ATF_TC_HEAD()
175 ATF_REQUIRE_EQ_MSG(ret = poll(&pfds[0], 1, 1), 0, in ATF_TC_BODY()
183 ATF_REQUIRE_EQ_MSG(ret = poll(&pfds[1], 1, 1), 1, in ATF_TC_BODY()
192 ATF_REQUIRE_EQ_MSG(ret = poll(pfds, 2, 1), 1, in ATF_TC_BODY()
204 ATF_REQUIRE_EQ_MSG(ret = poll(pfds, 2, 1), 2, in ATF_TC_BODY()
218 atf_tc_set_md_var(tc, "descr", "Check errors from poll(2)"); in ATF_TC_HEAD()
[all …]
/freebsd/sbin/routed/rtquery/
H A Drtquery.827 .Em poll
43 .Em poll
52 .Em poll
64 .Em poll
83 .Em poll
/freebsd/crypto/openssh/openbsd-compat/
H A Dbsd-poll.h1 /* $OpenBSD: poll.h,v 1.11 2003/12/10 23:10:08 millert Exp $ */
28 /* OPENBSD ORIGINAL: sys/sys/poll.h */
35 # include <poll.h>
37 # include <sys/poll.h>
83 int poll(struct pollfd *, nfds_t, int);

12345678910>>...56