Changes in ifaddr refcounting: ifa_refcnt IFAREF/IFAFREE macros

moved to ifa_ref()/ifa_free() refcounting functions.

MFC after:	1 week
This commit is contained in:
Sergey Kandaurov 2012-03-01 12:52:14 +00:00
parent 8963e1b501
commit 40d5e8a628
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232336

View File

@ -81,8 +81,9 @@
.Ft "struct ifaddr *"
.Fn ifaof_ifpforaddr "struct sockaddr *addr" "struct ifnet *ifp"
.Ft void
.Fn ifafree "struct ifaddr *ifa"
.Fn IFAFREE "struct ifaddr *ifa"
.Fn ifa_ref "struct ifaddr *ifa"
.Ft void
.Fn ifa_free "struct ifaddr *ifa"
.\"
.Ss "Interface Multicast Address Functions"
.Ft int
@ -999,14 +1000,11 @@ external routing protocol.
.Pp
References to
.Vt ifaddr
structures are gained manually, by incrementing the
.Va ifa_refcnt
member.
References are released by calling either the
.Fn ifafree
function or the
.Fn IFAFREE
macro.
structures are gained by calling the
.Fn ifa_ref
function and released by calling the
.Fn ifa_free
function.
.Pp
.Fn ifa_rtrequest
is a pointer to a function which receives callouts from the routing