summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-04-25 12:35:39 +0000
committerjilles <jilles@FreeBSD.org>2010-04-25 12:35:39 +0000
commitc36f2cfde192d05e6cd76ef5feb0a525a7faf288 (patch)
treecaed5ac5d345b51a872cb3af4a676f36e192fcab /lib
parentd69a8fd3dce93bc8063343da1d1d7a49be7f5ffd (diff)
downloadFreeBSD-src-c36f2cfde192d05e6cd76ef5feb0a525a7faf288.zip
FreeBSD-src-c36f2cfde192d05e6cd76ef5feb0a525a7faf288.tar.gz
sysctl(3): Update description of various kern.* variables.
Also add xrefs for confstr(3) (as sysconf(3) but for strings) and kvm(3) (which is a more convenient way to access some of the variables). PR: 116480 MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/sysctl.322
1 files changed, 10 insertions, 12 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index b7ed091..9eba624 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -28,7 +28,7 @@
.\" @(#)sysctl.3 8.4 (Berkeley) 5/9/95
.\" $FreeBSD$
.\"
-.Dd February 21, 2010
+.Dd April 25, 2010
.Dt SYSCTL 3
.Os
.Sh NAME
@@ -325,7 +325,7 @@ information.
.It "KERN_BOOTFILE string yes"
.It "KERN_BOOTTIME struct timeval no"
.It "KERN_CLOCKRATE struct clockinfo no"
-.It "KERN_FILE struct file no"
+.It "KERN_FILE struct xfile no"
.It "KERN_HOSTID integer yes"
.It "KERN_HOSTUUID string yes"
.It "KERN_HOSTNAME string yes"
@@ -342,14 +342,14 @@ information.
.It "KERN_OSREV integer no"
.It "KERN_OSTYPE string no"
.It "KERN_POSIX1 integer no"
-.It "KERN_PROC struct proc no"
+.It "KERN_PROC node not applicable"
.It "KERN_PROF node not applicable"
.It "KERN_QUANTUM integer yes"
.It "KERN_SAVED_IDS integer no"
.It "KERN_SECURELVL integer raise only"
.It "KERN_UPDATEINTERVAL integer no"
.It "KERN_VERSION string no"
-.It "KERN_VNODE struct vnode no"
+.It "KERN_VNODE struct xvnode no"
.El
.Bl -tag -width 6n
.It Li KERN_ARGMAX
@@ -370,10 +370,8 @@ This structure contains the clock, statistics clock and profiling clock
frequencies, the number of micro-seconds per hz tick and the skew rate.
.It Li KERN_FILE
Return the entire file table.
-The returned data consists of a single
-.Va struct filehead
-followed by an array of
-.Va struct file ,
+The returned data consists of an array of
+.Va struct xfile ,
whose size depends on the current number of such objects in the system.
.It Li KERN_HOSTID
Get or set the host ID.
@@ -525,10 +523,8 @@ Note, the vnode table is not necessarily a consistent snapshot of
the system.
The returned data consists of an array whose size depends on the
current number of such objects in the system.
-Each element of the array contains the kernel address of a vnode
-.Va struct vnode *
-followed by the vnode itself
-.Va struct vnode .
+Each element of the array consists of a
+.Va struct xvnode .
.El
.Ss CTL_NET
The string and integer information available for the CTL_NET level
@@ -854,6 +850,8 @@ An attempt is made to set a read-only value.
A process without appropriate privilege attempts to set a value.
.El
.Sh SEE ALSO
+.Xr confstr 3 ,
+.Xr kvm 3 ,
.Xr sysconf 3 ,
.Xr sysctl 8
.Sh HISTORY
OpenPOWER on IntegriCloud