diff options
author | phk <phk@FreeBSD.org> | 1995-12-02 20:40:20 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-12-02 20:40:20 +0000 |
commit | 945b001c36df6c5fd91850c2b1a7369de4777555 (patch) | |
tree | ccf3e4f30d2909b368165f9e006532491d1c2f36 | |
parent | adc43de28bf085f0bcd177b4eb92ca98ecee1f3c (diff) | |
download | FreeBSD-src-945b001c36df6c5fd91850c2b1a7369de4777555.zip FreeBSD-src-945b001c36df6c5fd91850c2b1a7369de4777555.tar.gz |
malloc.h: add sysctl class.
sysctl.h add "AUTO" OID.
both of which will be need RSN.
-rw-r--r-- | sys/sys/malloc.h | 6 | ||||
-rw-r--r-- | 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 c88d6c3..f69d49a 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 bdb2606..444ea46 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) |