3 years ago

INTRO (7) NetBSD Miscellaneous Information Manual INTRO (7 ...

INTRO (7) NetBSD Miscellaneous Information Manual INTRO (7 ...


SYSCTL (7) NetBSD Miscellaneous Information Manual SYSCTL (7) NAME sysctl —system information variables DESCRIPTION The sysctl(3) library function and the sysctl(8) utility are used to get and set values of system variables, maintained by the kernel. The variables are organized in a tree and identified by a sequence of numbers, conventionally separated by dots with the topmost identifier at the left side. The numbers have corresponding text names. The sysctlnametomib(3) function or the −M argument to the sysctl(8) utility can be used to convert the text representation to the numeric one. The individual sysctl variables are described below, both the textual and numeric form where applicable. The textual names can be used as argument to the sysctl(8) utility and in the file /etc/sysctl.conf. The numeric names are usually defined as preprocessor constants and are intended for use by programs. Every such constant expands to one integer, which identifies the sysctl variable relative to the upper level of the tree. See the sysctl(3) manual page for programming examples. Toplevel names The top level names are defined with a CTL_ prefix in 〈sys/sysctl.h〉, and are as follows. The next and subsequent levels down are found in the include files listed here, and described in separate sections below. Name Constant Next level names Description kern CTL KERN sys/sysctl.h High kernel limits vm CTL VM uvm/uvm_param.h Virtual memory vfs CTL VFS sys/mount.h Filesystem net CTL NET sys/socket.h Networking debug CTL DEBUG sys/sysctl.h Debugging hw CTL HW sys/sysctl.h Generic CPU, I/O machdep CTL MACHDEP sys/sysctl.h Machine dependent user CTL USER sys/sysctl.h User-level ddb CTL DDB sys/sysctl.h In-kernel debugger proc CTL PROC sys/sysctl.h Per-process vendor CTL VENDOR ? Vendor specific emul CTL EMUL sys/sysctl.h Emulation settings security CTL SECURITY sys/sysctl.h Security settings The debug.∗ subtree The debugging variables vary from system to system. Adebugging variable may be added or deleted without need to recompile sysctl to know about it. Each time it runs, sysctl gets the list of debugging variables from the kernel and displays their current values. The system defines twenty (struct ctldebug) variables named debug0 through debug19. They are declared as separate variables so that they can be individually initialized at the location of their associated variable. The loader prevents multiple use of the same variable by issuing errors if a variable is initialized in more than one place. For example, to export the variable dospecialcheck as a debugging variable, the following declaration would be used: int dospecialcheck = 1; struct ctldebug debug5 = { "dospecialcheck", &dospecialcheck }; Note that the dynamic implementation of sysctl currently in use largely makes this particular sysctl interface obsolete. See sysctl(8) for more information. The vfs.∗ subtree Adistinguished second level name, vfs.generic (VFS_GENERIC), is used to get general information about all filesystems. One of its third level identifiers is vfs.generic.maxtypenum (VFS_MAXTYPENUM) that gives the highest valid filesystem type number. Its other third level identifier is NetBSD 3.0 December 27, 2007 1

SYSCTL (7) NetBSD Miscellaneous Information Manual SYSCTL (7) vfs.generic.conf (VFS_CONF) that returns configuration information about the filesystem type given as a fourth level identifier. The remaining second level identifiers are the filesystem type number returned by a statvfs(2) call or from vfs.generic.conf. The third level identifiers available for each filesystem are given inthe header file that defines the mount argument structure for that filesystem. The hw.∗ subtree The string and integer information available for the hw level isdetailed below. The changeable column shows whether a process with appropriate privilege may change the value. Second level name Type Changeable hw.alignbytes integer no hw.byteorder integer no hw.cnmagic string yes hw.disknames string no hw.diskstats struct no hw.machine string no hw.machine_arch string no hw.model string no hw.ncpu integer no hw.pagesize integer no hw.physmem integer no hw.physmem64 quad no hw.usermem integer no hw.usermem64 quad no hw.alignbytes (HW_ALIGNBYTES) Alignment constraint for all possible data types. This shows the value ALIGNBYTES in /usr/include/machine/param.h, atthe kernel compilation time. hw.byteorder (HW_BYTEORDER) The byteorder (4,321, or 1,234). hw.cnmagic (HW_CNMAGIC) The console magic key sequence. hw.disknames (HW_DISKNAMES) The list of (space separated) disk device names on the system. hw.iostatnames (HW_IOSTATNAMES) Aspace separated list of devices that will have I/O statistics collected on them. hw.iostats (HW_IOSTATS) Return statistical information on the NFS mounts, disk and tape devices on the system. An array of struct io_sysctl structures is returned, whose size depends on the current number of such objects in the system. The third level name is the size of the struct io_sysctl. The type of object can be determined by examining the type element of struct io_sysctl. Which can be IOSTAT_DISK (disk drive), IOSTAT_TAPE (tape drive), or IOSTAT_NFS (NFS mount). hw.machine (HW_MACHINE) The machine class. hw.machine_arch (HW_MACHINE_ARCH) The machine CPU class. hw.model (HW_MODEL) The machine model. NetBSD 3.0 December 27, 2007 2

miscellaneous information -
User Manager Manual - intro to search (pdf) - UCAS
Version 7 Manual - Freiwald Software
VINCI 7 Instruction manual - APart-Audio
QCapture PRO 7 User Manual - QImaging
Lakewood Center General Information Criteria Manual - Macerich
Capitola Mall General information Criteria Manual - Macerich
uip165p owner's manual - Support Information Management System
Information & Records Management Process Manual - University of ...
Download Customary Fishing Information Manual - Ministry of ...
Download Exhibitor Services Manual (PDF) - Drug Information ...
Information and Processing Manual Rheinspan® AirMaxx - Triplaco nv
Samsung NP870Z5GE - NP870Z5G-S01US - User Manual (Windows 7) (ENGLISH)
Engineering From 7 To 20 Tons Manual - Stulz Air Technologies Inc.
Operations Manual - TE 7-C Rotary Hammer Drill - Home Depot
Honeywell 7-Day Programmable Thermostat (RTH7600D) - 7-Day Programmable Thermostat Operating Manual (English,French)
Honeywell 7-Day Programmable Thermostat (RTH7600D) - 7-Day Programmable Thermostat Operating Manual (English,French)
University Manual Under Right To Information Act 2005 (English)
Samsung 27" Series 7 All-in-One PC - DP700A7D-S03US - User Manual (Windows 7) ver. 1.1 (KOREAN,15.16 MB)
Aroma Aroma 7-Cup Electric Kettle AWK-108 (AWK-108) - AWK-108 Instruction Manual - Aroma 7-Cup Electric Kettle
Samsung Series 3 15.6" Laptop - NP300E5A-A01UB - User Manual (Windows 7) ver. 1.4 (ENGLISH,13.44 MB)
Samsung Series 7 14” Notebook - NP700Z3A-S06US - User Manual (Windows 8) (ENGLISH)
Samsung Series 7 17.3” Notebook - NP770Z7E-S01UB - User Manual (Windows 8) ver. 1.3 (SPANISH,24.28 MB)
Samsung Series 7 15.6" Notebook - NP700Z5C-S04US - User Manual (Windows 8) (ENGLISH)
Samsung Series 3 15.6" Notebook - NP350E5C-A02US - User Manual (Windows 7) (ENGLISH)
Samsung Series 5 14" Notebook - NP500P4C-S01US - User Manual (Windows 7) ver. 1.1 (ENGLISH,9.74 MB)
Samsung 27" Series 7 All-in-One PC - DP700A7D-S03US - User Manual (Windows8.1) (ENGLISH)