Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add mbuf sysctl variables: msize, mclbytes, nmbclust...
details: https://anonhg.NetBSD.org/src/rev/2a00480db6d4
branches: trunk
changeset: 472285:2a00480db6d4
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Apr 26 21:55:53 1999 +0000
description:
Add mbuf sysctl variables: msize, mclbytes, nmbclusters, mblowat, and
mcllowat.
diffstat:
sys/sys/mbuf.h | 29 +++++++++++++++++++++++++----
1 files changed, 25 insertions(+), 4 deletions(-)
diffs (49 lines):
diff -r 3082248978e0 -r 2a00480db6d4 sys/sys/mbuf.h
--- a/sys/sys/mbuf.h Mon Apr 26 21:54:46 1999 +0000
+++ b/sys/sys/mbuf.h Mon Apr 26 21:55:53 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mbuf.h,v 1.42 1999/02/27 18:20:37 sommerfe Exp $ */
+/* $NetBSD: mbuf.h,v 1.43 1999/04/26 21:55:53 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1999 The NetBSD Foundation, Inc.
@@ -485,15 +485,36 @@
u_short m_mtypes[256]; /* type specific mbuf allocations */
};
+/*
+ * Mbuf sysctl variables.
+ */
+#define MBUF_MSIZE 1 /* int: mbuf base size */
+#define MBUF_MCLBYTES 2 /* int: mbuf cluster size */
+#define MBUF_NMBCLUSTERS 3 /* int: limit on the # of clusters */
+#define MBUF_MBLOWAT 4 /* int: mbuf low water mark */
+#define MBUF_MCLLOWAT 5 /* int: mbuf cluster low water mark */
+#define MBUF_MAXID 6 /* number of valid MBUF ids */
+
+#define CTL_MBUF_NAMES { \
+ { 0, 0 }, \
+ { "msize", CTLTYPE_INT }, \
+ { "mclbytes", CTLTYPE_INT }, \
+ { "nmbclusters", CTLTYPE_INT }, \
+ { "mblowat", CTLTYPE_INT }, \
+ { "mcllowat", CTLTYPE_INT }, \
+}
+
#ifdef _KERNEL
extern struct mbstat mbstat;
-extern int nmbclusters;
-extern int nmbufs;
-extern struct mbuf *mmbfree;
+extern int nmbclusters; /* limit on the # of clusters */
+extern int mblowat; /* mbuf low water mark */
+extern int mcllowat; /* mbuf cluster low water mark */
extern int max_linkhdr; /* largest link-level header */
extern int max_protohdr; /* largest protocol header */
extern int max_hdr; /* largest link+protocol header */
extern int max_datalen; /* MHLEN - max_hdr */
+extern const int msize; /* mbuf base size */
+extern const int mclbytes; /* mbuf cluster size */
extern int mbtypes[]; /* XXX */
extern struct pool mbpool;
extern struct pool mclpool;
Home |
Main Index |
Thread Index |
Old Index