uipc_mbuf.c (2b14f991e64ebe31ca31a1a41237061c22a753d0) | uipc_mbuf.c (4590fd3a2a5539b8a1ce2ad488707123c8b7c8c8) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 | 1/* 2 * Copyright (c) 1982, 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)uipc_mbuf.c 8.2 (Berkeley) 1/4/94 |
34 * $Id: uipc_mbuf.c,v 1.10 1995/07/29 11:40:16 bde Exp $ | 34 * $Id: uipc_mbuf.c,v 1.11 1995/08/28 09:18:52 julian Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/proc.h> 40#include <sys/malloc.h> 41#define MBTYPES 42#include <sys/mbuf.h> --- 4 unchanged lines hidden (view full) --- 47 48#include <vm/vm.h> 49#include <vm/vm_kern.h> 50 51/* 52 * System initialization 53 */ 54 | 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/proc.h> 40#include <sys/malloc.h> 41#define MBTYPES 42#include <sys/mbuf.h> --- 4 unchanged lines hidden (view full) --- 47 48#include <vm/vm.h> 49#include <vm/vm_kern.h> 50 51/* 52 * System initialization 53 */ 54 |
55static void mbinit __P((caddr_t)); | 55static void mbinit __P((void *)); |
56SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbinit, NULL) 57 58 59struct mbuf *mbutl; 60char *mclrefcnt; 61struct mbstat mbstat; 62union mcluster *mclfree; 63int max_linkhdr; 64int max_protohdr; 65int max_hdr; 66int max_datalen; 67 68/* ARGSUSED*/ 69static void | 56SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbinit, NULL) 57 58 59struct mbuf *mbutl; 60char *mclrefcnt; 61struct mbstat mbstat; 62union mcluster *mclfree; 63int max_linkhdr; 64int max_protohdr; 65int max_hdr; 66int max_datalen; 67 68/* ARGSUSED*/ 69static void |
70mbinit( udata) 71caddr_t udata; /* not used*/ | 70mbinit(udata) 71 void *udata; /* not used*/ |
72{ 73 int s; 74 75#if CLBYTES < 4096 76#define NCL_INIT (4096/CLBYTES) 77#else 78#define NCL_INIT 1 79#endif --- 669 unchanged lines hidden --- | 72{ 73 int s; 74 75#if CLBYTES < 4096 76#define NCL_INIT (4096/CLBYTES) 77#else 78#define NCL_INIT 1 79#endif --- 669 unchanged lines hidden --- |