Deleted Added
full compact
ng_base.c (111749) ng_base.c (111888)
1/*
2 * ng_base.c
3 *
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
5 * All rights reserved.
6 *
7 * Subject to the following obligations and disclaimer of warranty, use and
8 * redistribution of this software, in source or object code forms, with or

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

31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
34 * OF SUCH DAMAGE.
35 *
36 * Authors: Julian Elischer <julian@freebsd.org>
37 * Archie Cobbs <archie@freebsd.org>
38 *
1/*
2 * ng_base.c
3 *
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
5 * All rights reserved.
6 *
7 * Subject to the following obligations and disclaimer of warranty, use and
8 * redistribution of this software, in source or object code forms, with or

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

31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
34 * OF SUCH DAMAGE.
35 *
36 * Authors: Julian Elischer <julian@freebsd.org>
37 * Archie Cobbs <archie@freebsd.org>
38 *
39 * $FreeBSD: head/sys/netgraph/ng_base.c 111749 2003-03-02 18:04:10Z harti $
39 * $FreeBSD: head/sys/netgraph/ng_base.c 111888 2003-03-04 23:19:55Z jlemon $
40 * $Whistle: ng_base.c,v 1.39 1999/01/28 23:54:53 julian Exp $
41 */
42
43/*
44 * This file implements the base netgraph code.
45 */
46
47#include <sys/param.h>

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

2982 case MOD_LOAD:
2983 /* Register line discipline */
2984 mtx_init(&ng_worklist_mtx, "ng_worklist", NULL, MTX_SPIN);
2985 mtx_init(&ng_typelist_mtx, "netgraph types mutex", NULL, 0);
2986 mtx_init(&ng_nodelist_mtx, "netgraph nodelist mutex", NULL, 0);
2987 mtx_init(&ng_idhash_mtx, "netgraph idhash mutex", NULL, 0);
2988 mtx_init(&ngq_mtx, "netgraph netisr mutex", NULL, 0);
2989 s = splimp();
40 * $Whistle: ng_base.c,v 1.39 1999/01/28 23:54:53 julian Exp $
41 */
42
43/*
44 * This file implements the base netgraph code.
45 */
46
47#include <sys/param.h>

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

2982 case MOD_LOAD:
2983 /* Register line discipline */
2984 mtx_init(&ng_worklist_mtx, "ng_worklist", NULL, MTX_SPIN);
2985 mtx_init(&ng_typelist_mtx, "netgraph types mutex", NULL, 0);
2986 mtx_init(&ng_nodelist_mtx, "netgraph nodelist mutex", NULL, 0);
2987 mtx_init(&ng_idhash_mtx, "netgraph idhash mutex", NULL, 0);
2988 mtx_init(&ngq_mtx, "netgraph netisr mutex", NULL, 0);
2989 s = splimp();
2990 error = register_netisr(NETISR_NETGRAPH, ngintr);
2990 netisr_register(NETISR_NETGRAPH, (netisr_t *)ngintr, NULL);
2991 splx(s);
2992 break;
2993 case MOD_UNLOAD:
2994 /* You cant unload it because an interface may be using it. */
2995 error = EBUSY;
2996 break;
2997 default:
2998 error = EOPNOTSUPP;

--- 742 unchanged lines hidden ---
2991 splx(s);
2992 break;
2993 case MOD_UNLOAD:
2994 /* You cant unload it because an interface may be using it. */
2995 error = EBUSY;
2996 break;
2997 default:
2998 error = EOPNOTSUPP;

--- 742 unchanged lines hidden ---