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

Canon EOS ELAN 7/7E - EOS ELAN 7 Instruction Manual
2008 7 Series Owner's Manual - Irvine BMW
HyChill Information Manual - HyChill Refrigerants
ST251 Oxyhandspa manual 7-2012 2.indd
miscellaneous information -
01 - General Information - The Old Car Manual Project
Apogee Essence Users Manual - Apogee Information Systems
Fritsch Pulverisette 7 classic line manual ENG.pdf - Gemini BV
Crisis Core: Final Fantasy 7 - Sony PSP - Manual -
Samsung Series 7 15.6" Notebook - NP700Z5C-S04US - User Manual (Windows 7) ver. 1.4 (ENGLISH,10.78 MB)
Honeywell 7-Day Programmable Thermostat (RTH8500D) - 7-Day Programmable Thermostat Operating Manual (English, French)
Honeywell 7-Day Programmable Thermostat (RTH7600D) - 7-Day Programmable Thermostat Operating Manual (English,Spanish)
Samsung Series 7 15.6" Notebook - NP700Z5C-S01US - User Manual (Windows 7) ver. 1.4 (ENGLISH,10.78 MB)
Samsung Series 7 17.3" Gamer - NP700G7C-S01US - User Manual (Windows 7) ver. 1.5 (ENGLISH,12.46 MB)
Samsung Series 7 15.6” Notebook - NP780Z5E-S01UB - User Manual (Windows 7) ver. 1.0 (KOREAN,22.99 MB)
Samsung Series 7 17.3” Notebook - NP770Z7E-S01UB - User Manual (Windows 7) ver. 1.0 (KOREAN,22.99 MB)
User's Manual Important Information, Please ... - Kling und Freitag
uip 160p series owner's manual - Support Information Management ...
How to read your Plus! Information Manuals are provided ... - Acquire
Valley River Center General Information Criteria Manual - Macerich
Remote Access Gateway - User Manual Information ... - Kaleida Health
Aroma 7-Cup Electric Water KettleAWK-1000 (AWK-1000) - AWK-1000 Instruction Manual - 7-Cup Electric Water Kettle
Braun 740s-6, 740s-7 - 740s-6 Wet & Dry, Series 7 Manual (UK, FR, ES (USA, CDN, MEX))
[+][PDF] TOP TREND Series 7 Study Guide: Test Prep Manual Practice Exam Questions for the FINRA Series 7 License Exam [NEWS]
Samsung Series 3 15.6" Notebook - NP300E5C-A0BUS - User Manual (Windows 7) ver. 1.4 (ENGLISH,13.44 MB)
Samsung Series 7 15.6" Notebook - NP700Z5C-S02UB - User Manual (Windows 8) (ENGLISH)