Deleted Added
full compact
netgraph.4 (71263) netgraph.4 (71849)
1.\" Copyright (c) 1996-1999 Whistle Communications, Inc.
2.\" All rights reserved.
3.\"
4.\" Subject to the following obligations and disclaimer of warranty, use and
5.\" redistribution of this software, in source or object code forms, with or
6.\" without modifications are expressly permitted by Whistle Communications;
7.\" provided, however, that:
8.\" 1. Any and all reproductions of the source or object code must include the

--- 19 unchanged lines hidden (view full) ---

28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30.\" THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
31.\" OF SUCH DAMAGE.
32.\"
33.\" Authors: Julian Elischer <julian@FreeBSD.org>
34.\" Archie Cobbs <archie@FreeBSD.org>
35.\"
1.\" Copyright (c) 1996-1999 Whistle Communications, Inc.
2.\" All rights reserved.
3.\"
4.\" Subject to the following obligations and disclaimer of warranty, use and
5.\" redistribution of this software, in source or object code forms, with or
6.\" without modifications are expressly permitted by Whistle Communications;
7.\" provided, however, that:
8.\" 1. Any and all reproductions of the source or object code must include the

--- 19 unchanged lines hidden (view full) ---

28.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
30.\" THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
31.\" OF SUCH DAMAGE.
32.\"
33.\" Authors: Julian Elischer <julian@FreeBSD.org>
34.\" Archie Cobbs <archie@FreeBSD.org>
35.\"
36.\" $FreeBSD: head/share/man/man4/netgraph.4 71263 2001-01-19 14:15:40Z ru $
36.\" $FreeBSD: head/share/man/man4/netgraph.4 71849 2001-01-30 20:51:52Z julian $
37.\" $Whistle: netgraph.4,v 1.7 1999/01/28 23:54:52 julian Exp $
38.\"
39.Dd January 19, 1999
40.Dt NETGRAPH 4
41.Os FreeBSD
42.Sh NAME
43.Nm netgraph
44.Nd graph based kernel networking subsystem

--- 680 unchanged lines hidden (view full) ---

725.Pp
726.It
727references
728.Pp
729.Fn NG_HOOK_REF "hook"
730and
731.Fn NG_HOOK_UNREF "hook"
732increment and decrement the hook reference count accordingly.
37.\" $Whistle: netgraph.4,v 1.7 1999/01/28 23:54:52 julian Exp $
38.\"
39.Dd January 19, 1999
40.Dt NETGRAPH 4
41.Os FreeBSD
42.Sh NAME
43.Nm netgraph
44.Nd graph based kernel networking subsystem

--- 680 unchanged lines hidden (view full) ---

725.Pp
726.It
727references
728.Pp
729.Fn NG_HOOK_REF "hook"
730and
731.Fn NG_HOOK_UNREF "hook"
732increment and decrement the hook reference count accordingly.
733After decrement you should always sume the hook has been freed.
734In fact the macro may set it to NULL.
733After decrement you should always assume the hook has been freed
734unless you have another reference still valid.
735.El
736.Pp
737The maintenance of the names, reference counts, and linked list
738of hooks for each node is handled automatically by the
739.Nm
740subsystem.
741Typically a node's private info contains a back-pointer to the node or hook
742structure, which counts as a new reference that must be included

--- 594 unchanged lines hidden ---
735.El
736.Pp
737The maintenance of the names, reference counts, and linked list
738of hooks for each node is handled automatically by the
739.Nm
740subsystem.
741Typically a node's private info contains a back-pointer to the node or hook
742structure, which counts as a new reference that must be included

--- 594 unchanged lines hidden ---