Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/gen/sysctl.3
Show First 20 Lines • Show All 278 Lines • ▼ Show 20 Lines | |||||
.It Dv HW_PHYSMEM Ta integer Ta no | .It Dv HW_PHYSMEM Ta integer Ta no | ||||
.It Dv HW_USERMEM Ta integer Ta no | .It Dv HW_USERMEM Ta integer Ta no | ||||
.It Dv HW_PAGESIZE Ta integer Ta no | .It Dv HW_PAGESIZE Ta integer Ta no | ||||
.\".It Dv HW_DISKNAMES Ta integer Ta no | .\".It Dv HW_DISKNAMES Ta integer Ta no | ||||
.\".It Dv HW_DISKSTATS Ta integer Ta no | .\".It Dv HW_DISKSTATS Ta integer Ta no | ||||
.It Dv HW_FLOATINGPT Ta integer Ta no | .It Dv HW_FLOATINGPT Ta integer Ta no | ||||
.It Dv HW_MACHINE_ARCH Ta string Ta no | .It Dv HW_MACHINE_ARCH Ta string Ta no | ||||
.It Dv HW_REALMEM Ta integer Ta no | .It Dv HW_REALMEM Ta integer Ta no | ||||
.It Dv HW_SENSORS Ta node Ta not applicable | |||||
.El | .El | ||||
.Bl -tag -width 6n | .Bl -tag -width 6n | ||||
.It Li HW_MACHINE | .It Li HW_MACHINE | ||||
The machine class. | The machine class. | ||||
.It Li HW_MODEL | .It Li HW_MODEL | ||||
The machine model | The machine model | ||||
.It Li HW_NCPU | .It Li HW_NCPU | ||||
The number of cpus. | The number of cpus. | ||||
.It Li HW_BYTEORDER | .It Li HW_BYTEORDER | ||||
The byteorder (4321 or 1234). | The byteorder (4321 or 1234). | ||||
.It Li HW_PHYSMEM | .It Li HW_PHYSMEM | ||||
The bytes of physical memory. | The bytes of physical memory. | ||||
.It Li HW_USERMEM | .It Li HW_USERMEM | ||||
The bytes of non-kernel memory. | The bytes of non-kernel memory. | ||||
.It Li HW_PAGESIZE | .It Li HW_PAGESIZE | ||||
The software page size. | The software page size. | ||||
.\".It Fa HW_DISKNAMES | .\".It Fa HW_DISKNAMES | ||||
.\".It Fa HW_DISKSTATS | .\".It Fa HW_DISKSTATS | ||||
.It Li HW_FLOATINGPT | .It Li HW_FLOATINGPT | ||||
Nonzero if the floating point support is in hardware. | Nonzero if the floating point support is in hardware. | ||||
.It Li HW_MACHINE_ARCH | .It Li HW_MACHINE_ARCH | ||||
The machine dependent architecture type. | The machine dependent architecture type. | ||||
.It Li HW_REALMEM | .It Li HW_REALMEM | ||||
The bytes of real memory. | The bytes of real memory. | ||||
.It Li HW_SENSORS | |||||
Third level comprises an array of | |||||
wblockUnsubmitted Not Done Inline Actionswblock: ```The third level comprises an array of``` | |||||
.Li struct sensordev | |||||
structures containing information about devices | |||||
that may attach hardware monitoring sensors. | |||||
wblockUnsubmitted Not Done Inline ActionsDoes "may" mean "are allowed to" or just "might" here? wblock: Does "may" mean "are allowed to" or just "might" here? | |||||
.Pp | |||||
Third, fourth and fifth levels together comprise an array of | |||||
wblockUnsubmitted Not Done Inline ActionsUse the serial comma: s/fourth/fourth,/ wblock: Use the serial comma: s/fourth/fourth,/ | |||||
.Li struct sensor | |||||
structures containing snapshot readings of hardware monitoring sensors. | |||||
In such usage, third level indicates the numerical representation | |||||
of the sensor device name to which the sensor is attached | |||||
(device's xname and number shall be matched with the help of | |||||
.Li struct sensordev | |||||
structure above), | |||||
fourth level indicates sensor type and | |||||
fifth level is an ordinal sensor number (unique to | |||||
the specified sensor type on the specified sensor device). | |||||
.Pp | |||||
The | |||||
.Sy sensordev | |||||
and | |||||
.Sy sensor | |||||
structures | |||||
and | |||||
.Sy sensor_type | |||||
enumeration | |||||
are defined in | |||||
.In sys/sensors.h . | |||||
.El | .El | ||||
.Ss CTL_KERN | .Ss CTL_KERN | ||||
The string and integer information available for the CTL_KERN level | The string and integer information available for the CTL_KERN level | ||||
is detailed below. | is detailed below. | ||||
The changeable column shows whether a process with appropriate | The changeable column shows whether a process with appropriate | ||||
privilege may change the value. | privilege may change the value. | ||||
The types of data currently available are process information, | The types of data currently available are process information, | ||||
system vnodes, the open file entries, routing table entries, | system vnodes, the open file entries, routing table entries, | ||||
▲ Show 20 Lines • Show All 544 Lines • Show Last 20 Lines |