Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Mar 2012 12:30:58 +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: r232335 - head/share/man/man9
Message-ID:  <201203011230.q21CUwXv078449@svn.freebsd.org>

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

Log:
  Refine r232333 [1] and put note about ifnet refcount caller responsibility.
  
  Spotted by:	gavin [1]
  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 12:16:00 2012	(r232334)
+++ head/share/man/man9/ifnet.9	Thu Mar  1 12:30:57 2012	(r232335)
@@ -1159,8 +1159,11 @@ Return a reference-counted (via
 .Vt ifnet
 pointer for the interface named
 .Fa name .
-This is a preferred function over
+This is the preferred function over
 .Fn ifunit .
+The caller is responsible for releasing the reference with
+.Fn if_rele
+when it is finished with the ifnet.
 .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?201203011230.q21CUwXv078449>