Date: Wed, 23 Jan 2002 07:40:03 -0800 (PST) From: Thomas Quinot <thomas@cuivre.fr.eu.org> To: freebsd-doc@freebsd.org Subject: Re: docs/34184: Document "sysctl variable=/dev/foo" syntax Message-ID: <200201231540.g0NFe3T51474@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/34184; it has been noted by GNATS.
From: Thomas Quinot <thomas@cuivre.fr.eu.org>
To: Peter Pentchev <roam@ringlet.net>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: docs/34184: Document "sysctl variable=/dev/foo" syntax
Date: Wed, 23 Jan 2002 16:31:43 +0100
Peter,
First of all thanks for the feedback on this PR!
Le 2002-01-23, Peter Pentchev écrivait :
> I think new sentences should start on a new line in mdoc manual pages.
OK, I was not aware of that rule.
> Also, since this *is* the sysctl(8) manual page, it might be better
> to refer to the sysctl command by simply using .Nm here.
Absolutely right.
> .Dq no device .
That's nroff wizardry to me ;)
> Other than that, looks fine to me.
OK, here is an updated patch:
Index: sysctl.8
===================================================================
RCS file: /home/ncvs/src/sbin/sysctl/sysctl.8,v
retrieving revision 1.43
diff -u -r1.43 sysctl.8
--- sysctl.8 16 Jan 2002 06:55:29 -0000 1.43
+++ sysctl.8 23 Jan 2002 15:30:30 -0000
@@ -120,7 +120,8 @@
.Pp
The information available from
.Nm
-consists of integers, strings, and opaques.
+consists of integers, strings, devices (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 +137,18 @@
.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 sysctl .
+.Pp
+For device values,
+.Ar value
+can be specified as a character 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 @@
.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
@@ -213,6 +227,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 strictly equivalent to
+.Pp
+.Dl "dumpon /dev/somedev
.Pp
Information about the system clock rate may be obtained with:
.Pp
--
Thomas.Quinot@Cuivre.FR.EU.ORG
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201231540.g0NFe3T51474>
