summaryrefslogtreecommitdiff
path: root/share/man/man9/rtalloc.9
diff options
context:
space:
mode:
Diffstat (limited to 'share/man/man9/rtalloc.9')
-rw-r--r--share/man/man9/rtalloc.912
1 files changed, 10 insertions, 2 deletions
diff --git a/share/man/man9/rtalloc.9 b/share/man/man9/rtalloc.9
index 1110bbc214c..9b406cdb8b7 100644
--- a/share/man/man9/rtalloc.9
+++ b/share/man/man9/rtalloc.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rtalloc.9,v 1.5 2015/09/01 13:46:58 jmc Exp $
+.\" $OpenBSD: rtalloc.9,v 1.6 2015/09/11 19:27:05 mpi Exp $
.\"
.\" Copyright (c) 2014-2015 Martin Pieuchot
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: September 1 2015 $
+.Dd $Mdocdate: September 11 2015 $
.Dt RTALLOC 9
.Os
.Sh NAME
@@ -34,6 +34,8 @@
.Ft int
.Fn rtisvalid "struct rtentry *rt"
.Ft void
+.Fn rtref "struct rtentry *rt"
+.Ft void
.Fn rtfree "struct rtentry *rt"
.Sh DESCRIPTION
The
@@ -76,6 +78,11 @@ Cached entries that are no longer valid should be released by calling
.Fn rtfree .
.Pp
The
+.Fn rtref
+function increments a reference to the routing entry
+.Fa rt .
+.Pp
+The
.Fn rtfree
function releases a reference to the routing entry
.Fa rt ,
@@ -84,6 +91,7 @@ freeing it if the reference count drops to 0.
.Fn rtalloc ,
.Fn rtalloc_mpath ,
.Fn rtisvalid ,
+.Fn rtref ,
and
.Fn rtfree
can be called during autoconf, from process context, or from interrupt context.