summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2003-08-05 07:12:49 +0000
committerjmg <jmg@FreeBSD.org>2003-08-05 07:12:49 +0000
commited1d8121c2d1b33f2c886c475109ef3f556b90c6 (patch)
tree258f37b0d41286f68a5be4b2d848607075e81ff0 /lib/libc/sys
parentd0c4c329b1946b004bffc0036516aaf3bcd1d928 (diff)
downloadFreeBSD-src-ed1d8121c2d1b33f2c886c475109ef3f556b90c6.zip
FreeBSD-src-ed1d8121c2d1b33f2c886c475109ef3f556b90c6.tar.gz
add support for using kqueue to watch bpf sockets.
Submitted by: Brian Buchanan of nCircle, Inc. Tested on: i386 and sparc64
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/kqueue.29
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 93d5c78..468cfca 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -265,6 +265,13 @@ When the last writer disconnects, the filter will set EV_EOF in
This may be cleared by passing in EV_CLEAR, at which point the
filter will resume waiting for data to become available before
returning.
+.It "BPF devices"
+Returns when the BPF buffer is full, the BPF timeout has expired, or
+when the BPF has
+.Dq immediate mode
+enabled and there is any data to read;
+.Va data
+contains the number of bytes available.
.El
.It EVFILT_WRITE
Takes a descriptor as the identifier, and returns whenever
@@ -274,7 +281,7 @@ and fifos,
will contain the amount of space remaining in the write buffer.
The filter will set EV_EOF when the reader disconnects, and for
the fifo case, this may be cleared by use of EV_CLEAR.
-Note that this filter is not supported for vnodes.
+Note that this filter is not supported for vnodes or BPF devices.
.Pp
For sockets, the low water mark and socket error handling is
identical to the EVFILT_READ case.
OpenPOWER on IntegriCloud