Add support for kern.maxphys, vm.maxslp, vm.uspace (the later two for ps).
This commit is contained in:
parent
efcf0f3154
commit
f300898396
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: kern_sysctl.c,v 1.91 2001/07/09 23:35:56 simonb Exp $ */
|
/* $NetBSD: kern_sysctl.c,v 1.92 2001/07/14 06:36:01 matt Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1982, 1986, 1989, 1993
|
* Copyright (c) 1982, 1986, 1989, 1993
|
||||||
|
@ -534,6 +534,8 @@ kern_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp,
|
||||||
return (sysctl_dopipe(name + 1, namelen - 1, oldp, oldlenp,
|
return (sysctl_dopipe(name + 1, namelen - 1, oldp, oldlenp,
|
||||||
newp, newlen));
|
newp, newlen));
|
||||||
#endif
|
#endif
|
||||||
|
case KERN_MAXPHYS:
|
||||||
|
return sysctl_rdint(oldp, oldlenp, newp, MAXPHYS);
|
||||||
default:
|
default:
|
||||||
return (EOPNOTSUPP);
|
return (EOPNOTSUPP);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: sysctl.h,v 1.65 2001/07/09 10:25:21 simonb Exp $ */
|
/* $NetBSD: sysctl.h,v 1.66 2001/07/14 06:36:02 matt Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1993
|
* Copyright (c) 1989, 1993
|
||||||
|
@ -174,7 +174,8 @@ struct ctlname {
|
||||||
#define KERN_CONSDEV 54 /* dev_t: console terminal device */
|
#define KERN_CONSDEV 54 /* dev_t: console terminal device */
|
||||||
#define KERN_MAXPTYS 55 /* int: maximum number of ptys */
|
#define KERN_MAXPTYS 55 /* int: maximum number of ptys */
|
||||||
#define KERN_PIPE 56 /* node: pipe limits */
|
#define KERN_PIPE 56 /* node: pipe limits */
|
||||||
#define KERN_MAXID 57 /* number of valid kern ids */
|
#define KERN_MAXPHYS 57 /* int: kernel value of MAXPHYS */
|
||||||
|
#define KERN_MAXID 58 /* number of valid kern ids */
|
||||||
|
|
||||||
#define CTL_KERN_NAMES { \
|
#define CTL_KERN_NAMES { \
|
||||||
{ 0, 0 }, \
|
{ 0, 0 }, \
|
||||||
|
@ -234,6 +235,7 @@ struct ctlname {
|
||||||
{ "consdev", CTLTYPE_STRUCT }, \
|
{ "consdev", CTLTYPE_STRUCT }, \
|
||||||
{ "maxptys", CTLTYPE_INT }, \
|
{ "maxptys", CTLTYPE_INT }, \
|
||||||
{ "pipe", CTLTYPE_NODE }, \
|
{ "pipe", CTLTYPE_NODE }, \
|
||||||
|
{ "maxphys", CTLTYPE_INT }, \
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: uvm_meter.c,v 1.20 2001/06/02 18:09:27 chs Exp $ */
|
/* $NetBSD: uvm_meter.c,v 1.21 2001/07/14 06:36:03 matt Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
* Copyright (c) 1997 Charles D. Cranor and Washington University.
|
||||||
|
@ -196,6 +196,12 @@ uvm_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
|
||||||
uvmexp.vnodemin = t * 256 / 100;
|
uvmexp.vnodemin = t * 256 / 100;
|
||||||
return rv;
|
return rv;
|
||||||
|
|
||||||
|
case VM_MAXSLP:
|
||||||
|
return (sysctl_rdint(oldp, oldlenp, newp, maxslp));
|
||||||
|
|
||||||
|
case VM_USPACE:
|
||||||
|
return (sysctl_rdint(oldp, oldlenp, newp, USPACE));
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return (EOPNOTSUPP);
|
return (EOPNOTSUPP);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: uvm_param.h,v 1.10 2001/05/25 04:06:16 chs Exp $ */
|
/* $NetBSD: uvm_param.h,v 1.11 2001/07/14 06:36:03 matt Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1991, 1993
|
* Copyright (c) 1991, 1993
|
||||||
|
@ -112,8 +112,10 @@ typedef int boolean_t;
|
||||||
#define VM_ANONMIN 6
|
#define VM_ANONMIN 6
|
||||||
#define VM_VTEXTMIN 7
|
#define VM_VTEXTMIN 7
|
||||||
#define VM_VNODEMIN 8
|
#define VM_VNODEMIN 8
|
||||||
|
#define VM_MAXSLP 9
|
||||||
|
#define VM_USPACE 10
|
||||||
|
|
||||||
#define VM_MAXID 9 /* number of valid vm ids */
|
#define VM_MAXID 11 /* number of valid vm ids */
|
||||||
|
|
||||||
#define CTL_VM_NAMES { \
|
#define CTL_VM_NAMES { \
|
||||||
{ 0, 0 }, \
|
{ 0, 0 }, \
|
||||||
|
@ -125,6 +127,8 @@ typedef int boolean_t;
|
||||||
{ "anonmin", CTLTYPE_INT }, \
|
{ "anonmin", CTLTYPE_INT }, \
|
||||||
{ "vtextmin", CTLTYPE_INT }, \
|
{ "vtextmin", CTLTYPE_INT }, \
|
||||||
{ "vnodemin", CTLTYPE_INT }, \
|
{ "vnodemin", CTLTYPE_INT }, \
|
||||||
|
{ "maxslp", CTLTYPE_INT }, \
|
||||||
|
{ "uspace", CTLTYPE_INT }, \
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef ASSEMBLER
|
#ifndef ASSEMBLER
|
||||||
|
|
Loading…
Reference in New Issue