mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
malloc.h: add sysctl class.
sysctl.h add "AUTO" OID. both of which will be need RSN.
This commit is contained in:
parent
dd05856fd3
commit
cfe2587697
2 changed files with 7 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue