Deleted Added
full compact
ng_base.c (122110) ng_base.c (122320)
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 122110 2003-11-05 10:32:21Z harti $
39 * $FreeBSD: head/sys/netgraph/ng_base.c 122320 2003-11-08 22:28:40Z sam $
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>

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

2981 case MOD_LOAD:
2982 /* Register line discipline */
2983 mtx_init(&ng_worklist_mtx, "ng_worklist", NULL, MTX_SPIN);
2984 mtx_init(&ng_typelist_mtx, "netgraph types mutex", NULL, 0);
2985 mtx_init(&ng_nodelist_mtx, "netgraph nodelist mutex", NULL, 0);
2986 mtx_init(&ng_idhash_mtx, "netgraph idhash mutex", NULL, 0);
2987 mtx_init(&ngq_mtx, "netgraph free item list mutex", NULL, 0);
2988 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>

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

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

--- 714 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;

--- 714 unchanged lines hidden ---