uipc_mbuf.c (9759) | uipc_mbuf.c (10358) |
---|---|
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.9 1995/03/15 07:51:53 davidg Exp $ | 34 * $Id: uipc_mbuf.c,v 1.10 1995/07/29 11:40:16 bde 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> 43#include <sys/kernel.h> 44#include <sys/syslog.h> 45#include <sys/domain.h> 46#include <sys/protosw.h> 47 48#include <vm/vm.h> 49#include <vm/vm_kern.h> 50 | 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> 43#include <sys/kernel.h> 44#include <sys/syslog.h> 45#include <sys/domain.h> 46#include <sys/protosw.h> 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)); 56SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbinit, NULL) 57 58 |
|
51struct mbuf *mbutl; 52char *mclrefcnt; 53struct mbstat mbstat; 54union mcluster *mclfree; 55int max_linkhdr; 56int max_protohdr; 57int max_hdr; 58int max_datalen; 59 | 59struct mbuf *mbutl; 60char *mclrefcnt; 61struct mbstat mbstat; 62union mcluster *mclfree; 63int max_linkhdr; 64int max_protohdr; 65int max_hdr; 66int max_datalen; 67 |
60void 61mbinit() | 68/* ARGSUSED*/ 69static void 70mbinit( udata) 71caddr_t udata; /* not used*/ |
62{ 63 int s; 64 65#if CLBYTES < 4096 66#define NCL_INIT (4096/CLBYTES) 67#else 68#define NCL_INIT 1 69#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 --- |