docs/56872: [Patch] Talk about EVFILT_NETDEV in kqueue(2)

Suleiman Souhlal refugee at vt.edu
Sun Sep 14 17:20:17 UTC 2003


>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 at 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:



More information about the freebsd-doc mailing list