From cfe2587697ecd54c854fa729e0c10acafee4bbc2 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 2 Dec 1995 20:40:20 +0000 Subject: [PATCH] malloc.h: add sysctl class. sysctl.h add "AUTO" OID. both of which will be need RSN. --- sys/sys/malloc.h | 6 ++++-- sys/sys/sysctl.h | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sys/sys/malloc.h b/sys/sys/malloc.h index c88d6c3e584..f69d49a491d 100644 --- a/sys/sys/malloc.h +++ b/sys/sys/malloc.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)malloc.h 8.3 (Berkeley) 1/12/94 - * $Id: malloc.h,v 1.8 1995/04/20 03:18:15 julian Exp $ + * $Id: malloc.h,v 1.9 1995/09/14 16:25:06 wollman Exp $ */ #ifndef _SYS_MALLOC_H_ @@ -121,7 +121,8 @@ #define M_IPFW 77 /* IpFw/IpAcct chain's */ #define M_DEVL 78 /* isa_device lists in userconfig() */ #define M_PKTCLASS 79 /* structures used in packet classifier */ -#define M_LAST 80 /* Must be last type + 1 */ +#define M_SYSCTL 80 /* sysctl internal magic */ +#define M_LAST 81 /* Must be last type + 1 */ #define INITKMEMNAMES { \ "free", /* 0 M_FREE */ \ @@ -199,6 +200,7 @@ "IpFw/IpAcct", /* 77 M_IPFW */ \ "isa_devlist", /* 78 M_DEVL */ \ "PktClass", /* 79 M_PKTCLASS */ \ + "sysctl", /* 80 M_SYSCTL */ \ } struct kmemstats { diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index bdb2606dabb..444ea464c8f 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)sysctl.h 8.1 (Berkeley) 6/2/93 - * $Id: sysctl.h,v 1.34 1995/11/16 19:00:27 phk Exp $ + * $Id: sysctl.h,v 1.35 1995/11/20 12:42:39 phk Exp $ */ #ifndef _SYS_SYSCTL_H_ @@ -76,6 +76,8 @@ struct ctlname { #define CTLFLAG_RW (CTLFLAG_RD|CTLFLAG_WR) #define CTLFLAG_NOLOCK 0x20000000 /* XXX Don't Lock */ +#define OID_AUTO (-1) + #ifdef KERNEL #define SYSCTL_HANDLER_ARGS (struct sysctl_oid *oidp, void *arg1, int arg2, \ struct sysctl_req *req)