summaryrefslogtreecommitdiffstats
path: root/sbin/sysctl/sysctl.8
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2002-03-10 09:53:39 +0000
committerdd <dd@FreeBSD.org>2002-03-10 09:53:39 +0000
commitd86c11330da98ee0d6b061b338e165200d610381 (patch)
treee1849f3e1a6866f2dda675ecd326166b9a320c68 /sbin/sysctl/sysctl.8
parenta0a82fddd1d2e10a90964b3dd59fe367256eced1 (diff)
downloadFreeBSD-src-d86c11330da98ee0d6b061b338e165200d610381.zip
FreeBSD-src-d86c11330da98ee0d6b061b338e165200d610381.tar.gz
Document `sysctl variable=/dev/foo' syntax.
PR: 34184 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
Diffstat (limited to 'sbin/sysctl/sysctl.8')
-rw-r--r--sbin/sysctl/sysctl.826
1 files changed, 24 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8
index 3790c6d..538a74e 100644
--- a/sbin/sysctl/sysctl.8
+++ b/sbin/sysctl/sysctl.8
@@ -32,7 +32,7 @@
.\" From: @(#)sysctl.8 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd May 28, 2001
+.Dd March 10, 2002
.Dt SYSCTL 8
.Os
.Sh NAME
@@ -120,7 +120,9 @@ few bytes.
.Pp
The information available from
.Nm
-consists of integers, strings, and opaques.
+consists of integers, strings, devices
+.Pq Vt dev_t ,
+and opaque types.
.Nm Sysctl
only knows about a couple of opaque types, and will resort to hexdumps
for the rest.
@@ -136,6 +138,17 @@ For a detailed description of these variable see
.Pp
The changeable column indicates whether a process with appropriate
privilege can change the value.
+String, integer, and devices values can be set using
+.Nm .
+For device values,
+.Ar value
+can be specified as a character device special file name.
+Special values
+.Ar off
+and
+.Ar none
+denote
+.Dq no device .
.Bl -column security.bsd.unprivileged_read_msgbuf integerxxx
.It Sy "Name Type Changeable
.It "kern.ostype string no
@@ -164,6 +177,7 @@ privilege can change the value.
.It "kern.osreldate string no
.It "kern.bootfile string yes
.It "kern.corefile string yes
+.It "kern.dumpdev dev_t yes
.It "kern.logsigexit integer yes
.It "security.bsd.suser_enabled integer yes
.It "security.bsd.see_other_uids integer yes
@@ -214,6 +228,14 @@ per uid to 1000, one would use the following request:
.Pp
.Dl "sysctl kern.maxprocperuid=1000"
.Pp
+The device used for crash dumps can be specified using:
+.Pp
+.Dl "sysctl kern.dumpdev=/dev/somedev"
+.Pp
+which is equivalent to
+.Pp
+.Dl "dumpon /dev/somedev"
+.Pp
Information about the system clock rate may be obtained with:
.Pp
.Dl "sysctl kern.clockrate"
OpenPOWER on IntegriCloud