Date: Sun, 14 Sep 2003 13:10:25 -0400 (EDT) From: Suleiman Souhlal <refugee@vt.edu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/56872: [Patch] Talk about EVFILT_NETDEV in kqueue(2) Message-ID: <20030914171025.7A07418@hc6524a8b.dhcp.vt.edu> Resent-Message-ID: <200309141720.h8EHKF3r043186@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 56872 >Category: docs >Synopsis: [Patch] Talk about EVFILT_NETDEV in kqueue(2) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 14 10:20:15 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Suleiman Souhlal >Release: FreeBSD 5.1-CURRENT i386 >Organization: >Environment: System: FreeBSD zZzZ.vt.edu 5.1-CURRENT FreeBSD 5.1-CURRENT #8: Sun Aug 24 06:24:54 EDT 2003 refugee@zZzZ.vt.edu:/usr/obj/usr/src/sys/ZZZZ i386 >Description: Talk about the EVFILT_NETDEV filter in the kqueue(2) manpage. Please close ports/56758, as it is a duplicate of this pr that has been misfiled. >How-To-Repeat: >Fix: --- kqueue.2.diff begins here --- Index: lib/libc/sys/kqueue.2 =================================================================== RCS file: /home/ncvs/src/lib/libc/sys/kqueue.2,v retrieving revision 1.34 diff -u -r1.34 kqueue.2 --- lib/libc/sys/kqueue.2 8 Sep 2003 19:57:16 -0000 1.34 +++ lib/libc/sys/kqueue.2 13 Sep 2003 23:44:15 -0000 @@ -404,6 +404,22 @@ contains the number of times the timeout has expired since the last call to .Fn kevent . This filter automatically sets the EV_CLEAR flag internally. +.It EVFILT_NETDEV +Takes a descriptor to a network interface as the identifier and the events to watch for in +.Va fflags , +and returns when one or more of the requested events occurs on the descritor. The events to monitor are: +.Bl -tag -width XXNOTE_TRACKERR +.It NOTE_LINKUP +The link is up. +.It NOTE_LINKDOWN +The link is down. +.It NOTE_LINKINV +The link state is invalid. +.El +.Pp +On return, +.Va fflags +contains the events which triggered the filter. .El .Sh RETURN VALUES The --- kqueue.2.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030914171025.7A07418>