version 1.20, 2006/08/28 13:43:35 |
version 1.20.60.2, 2010/08/11 22:52:34 |
|
|
* of the hardware page size. |
* of the hardware page size. |
*/ |
*/ |
#ifndef MSIZE |
#ifndef MSIZE |
|
#ifdef _LP64 |
|
#define MSIZE 512 /* size of an mbuf */ |
|
#else /* _LP64 */ |
#define MSIZE 256 /* size of an mbuf */ |
#define MSIZE 256 /* size of an mbuf */ |
|
#endif /* _LP64 */ |
#endif |
#endif |
#ifndef MCLSHIFT |
#ifndef MCLSHIFT |
#define MCLSHIFT 11 /* convert bytes to m_buf clusters */ |
#define MCLSHIFT 11 /* convert bytes to m_buf clusters */ |
#endif |
#endif |
#define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */ |
#define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */ |
|
|
#ifndef NMBCLUSTERS |
|
|
|
#if defined(_KERNEL_OPT) |
|
#include "opt_gateway.h" |
|
#endif |
|
|
|
#ifdef GATEWAY |
|
#define NMBCLUSTERS 2048 /* map size, max cluster allocation */ |
|
#else |
|
#define NMBCLUSTERS 1024 /* map size, max cluster allocation */ |
|
#endif |
|
#endif |
|
|
|
/* |
/* |
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized |
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized |
* logical pages. |
* logical pages. |