Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Mar 2012 12:03:52 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232333 - head/share/man/man9
Message-ID:  <201203011203.q21C3qVS077483@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pluknet
Date: Thu Mar  1 12:03:52 2012
New Revision: 232333
URL: http://svn.freebsd.org/changeset/base/232333

Log:
  Document ifunit_ref function.
  
  MFC after:	1 week

Modified:
  head/share/man/man9/ifnet.9

Modified: head/share/man/man9/ifnet.9
==============================================================================
--- head/share/man/man9/ifnet.9	Thu Mar  1 11:55:28 2012	(r232332)
+++ head/share/man/man9/ifnet.9	Thu Mar  1 12:03:52 2012	(r232333)
@@ -66,6 +66,8 @@
 .Fn if_allmulti "struct ifnet *ifp" "int amswitch"
 .Ft "struct ifnet *"
 .Fn ifunit "const char *name"
+.Ft "struct ifnet *"
+.Fn ifunit_ref "const char *name"
 .Ft void
 .Fn if_up "struct ifnet *ifp"
 .\"
@@ -1151,6 +1153,14 @@ Return an
 .Vt ifnet
 pointer for the interface named
 .Fa name .
+.It Fn ifunit_ref
+Return a reference-counted (via
+.Fn ifa_ref )
+.Vt ifnet
+pointer for the interface named
+.Fa name .
+This is a preferred function over
+.Fn ifunit .
 .It Fn ifioctl
 Process the ioctl request
 .Fa cmd ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203011203.q21C3qVS077483>