Date: Tue, 22 Jan 2002 23:21:05 +0100 (CET) From: Thomas Quinot <thomas@cuivre.fr.eu.org> To: FreeBSD-gnats-submit@freebsd.org Subject: docs/34184: Document "sysctl variable=/dev/foo" syntax Message-ID: <20020122222105.B525360@melusine.cuivre.fr.eu.org>
next in thread | raw e-mail | index | archive | help
>Number: 34184 >Category: docs >Synopsis: Document "sysctl variable=/dev/foo" syntax >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 22 14:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Thomas Quinot >Release: FreeBSD 4.5-RC i386 >Organization: >Environment: System: FreeBSD melusine.cuivre.fr.eu.org 4.5-RC FreeBSD 4.5-RC #7: Tue Jan 15 22:29:15 CET 2002 thomas@melusine.cuivre.fr.eu.org:/usr/obj/usr/src/sys/MELUSINE i386 >Description: sysctl.c rev. 1.40 introduced the possibility of changing dev_t variables by specifying the name of a special file as the value. Since I was the one guilty of implementing that, I figured I should punish myself by documenting it. >How-To-Repeat: >Fix: 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 22 Jan 2002 22:14:20 -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. @@ -135,7 +136,17 @@ .Xr sysctl 3 . .Pp The changeable column indicates whether a process with appropriate -privilege can change the value. +privilege can change the value. String, integer, and devices +values can be set using +.Xr sysctl 8 . +For device values, +.Ar value +can be specified as a character special file name. Special +values +.Ar off +and +.Ar none +denote ``no device''. .Bl -column security.bsd.unprivileged_read_msgbuf integerxxx .It Sy "Name Type Changeable .It "kern.ostype string no @@ -164,6 +175,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 +225,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 >Release-Note: >Audit-Trail: >Unformatted: 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?20020122222105.B525360>