[BACK]Return to sysctl.7 CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / man / man7

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/share/man/man7/sysctl.7 between version 1.131 and 1.140

version 1.131, 2018/09/06 10:09:29 version 1.140, 2019/08/05 22:03:10
Line 29 
Line 29 
 .\"  .\"
 .\"     @(#)sysctl.3    8.4 (Berkeley) 5/9/95  .\"     @(#)sysctl.3    8.4 (Berkeley) 5/9/95
 .\"  .\"
 .Dd September 6, 2018  .Dd August 6, 2019
 .Dt SYSCTL 7  .Dt SYSCTL 7
 .Os  .Os
 .Sh NAME  .Sh NAME
Line 278  privilege may change the value.
Line 278  privilege may change the value.
 .It kern.arandom        integer no  .It kern.arandom        integer no
 .It kern.argmax integer no  .It kern.argmax integer no
 .It kern.boothowto      integer no  .It kern.boothowto      integer no
 .It kern.boottime       struct timeval  no  .It kern.boottime       struct timespec no
 .It kern.buildinfo      string  no  .It kern.buildinfo      string  no
 .\".It kern.bufq        node    not applicable  .\".It kern.bufq        node    not applicable
 .It kern.ccpu   integer no  .It kern.ccpu   integer no
Line 293  privilege may change the value.
Line 293  privilege may change the value.
 .It kern.domainname     string  yes  .It kern.domainname     string  yes
 .It kern.drivers        struct kinfo_drivers    no  .It kern.drivers        struct kinfo_drivers    no
 .It kern.dump_on_panic  integer yes  .It kern.dump_on_panic  integer yes
   .It kern.expose_address integer yes
 .It kern.file   struct file     no  .It kern.file   struct file     no
 .It kern.forkfsleep     integer yes  .It kern.forkfsleep     integer yes
 .It kern.fscale integer no  .It kern.fscale integer no
Line 307  privilege may change the value.
Line 308  privilege may change the value.
 .It kern.labelsector    integer no  .It kern.labelsector    integer no
 .It kern.login_name_max integer no  .It kern.login_name_max integer no
 .It kern.logsigexit     integer yes  .It kern.logsigexit     integer yes
   .It kern.lwp    struct kinfo_lwp        yes
 .It kern.mapped_files   integer no  .It kern.mapped_files   integer no
 .It kern.maxfiles       integer yes  .It kern.maxfiles       integer yes
 .It kern.maxlwp integer yes  .It kern.maxlwp integer yes
Line 358  privilege may change the value.
Line 360  privilege may change the value.
 .It kern.sched  node    not applicable  .It kern.sched  node    not applicable
 .It kern.securelevel    integer raise only  .It kern.securelevel    integer raise only
 .It kern.somaxkva       integer yes  .It kern.somaxkva       integer yes
   .It kern.sooptions      integer yes
 .It kern.synchronized_io        integer no  .It kern.synchronized_io        integer no
 .It kern.timecounter    node    not applicable  .It kern.timecounter    node    not applicable
 .It kern.timex  struct  no  .It kern.timex  struct  no
Line 395  Flags passed from the boot loader; see
Line 398  Flags passed from the boot loader; see
 for the meanings of the flags.  for the meanings of the flags.
 .It Li kern.boottime ( Dv KERN_BOOTTIME )  .It Li kern.boottime ( Dv KERN_BOOTTIME )
 A  A
 .Vt struct timeval  .Vt struct timespec
 structure is returned.  structure is returned.
 This structure contains the time that the system was booted.  This structure contains the time that the system was booted.
   That time is defined (for this purpose) to be the time at
   which the kernel first started accumulating clock ticks.
 .It Li kern.bufq  .It Li kern.bufq
 This variable contains information on the  This variable contains information on the
 .Xr bufq 9  .Xr bufq 9
Line 513  field is always a NUL terminated string.
Line 518  field is always a NUL terminated string.
 The  The
 .Va d_bmajor  .Va d_bmajor
 field will be set to \-1 if the driver doesn't have a block device.  field will be set to \-1 if the driver doesn't have a block device.
   .It Li kern.expose_address
   Expose kernel addresses in
   .Xr sysctl 3
   calls used by
   .Xr fstat 1
   and
   .Xr sockstat 1 .
   If it is set to
   .Dv 0
   access is not allowed.
   If it is set to
   .Dv 1
   then only processes that have opened
   .Pa /dev/kmem
   can have access.
   If it is set to
   .Dv 2
   every process is allowed.
   Defaults to
   .Dv 0
   for
   .Dv KASLR
   kernels
   and
   .Dv 1
   otherwise.
   Allowing general access renders KASLR ineffective; allowing only kmem
   accessing programs weakens KASLR if those programs can be subverted
   to leak the addresses.
 .It Li kern.dump_on_panic ( Dv KERN_DUMP_ON_PANIC )  .It Li kern.dump_on_panic ( Dv KERN_DUMP_ON_PANIC )
 Perform a crash dump on system  Perform a crash dump on system
 .Xr panic 9 .  .Xr panic 9 .
Line 694  If this flag is non-zero, the kernel wil
Line 728  If this flag is non-zero, the kernel wil
 all process exits due to signals which create a  all process exits due to signals which create a
 .Xr core 5  .Xr core 5
 file, and whether the coredump was created.  file, and whether the coredump was created.
   .It Li kern.lwp ( Dv KERN_LWP )
   Returns information about the current light-weight process.
   The
   .Sy kinfo_lwp
   structure is defined in
   .In sys/sysctl.h .
 .It Li kern.mapped_files ( Dv KERN_MAPPED_FILES )  .It Li kern.mapped_files ( Dv KERN_MAPPED_FILES )
 Returns 1 if the  Returns 1 if the
 .St -p1003.1b-93  .St -p1003.1b-93
Line 993  The fourth level name is as follows:
Line 1033  The fourth level name is as follows:
 .It Dv KERN_PROC_NARGV  The number of argv strings  .It Dv KERN_PROC_NARGV  The number of argv strings
 .It Dv KERN_PROC_NENV   The number of environ strings  .It Dv KERN_PROC_NENV   The number of environ strings
 .It Dv KERN_PROC_PATHNAME       The full pathname of the executable  .It Dv KERN_PROC_PATHNAME       The full pathname of the executable
   .It Dv KERN_PROC_CWD    The current working directory
 .El  .El
 .It Li kern.profiling ( Dv KERN_PROF )  .It Li kern.profiling ( Dv KERN_PROF )
 Return profiling information about the kernel.  Return profiling information about the kernel.
Line 1049  Return the offset of real time clock fro
Line 1090  Return the offset of real time clock fro
 .It Li kern.saved_ids ( Dv KERN_SAVED_IDS )  .It Li kern.saved_ids ( Dv KERN_SAVED_IDS )
 Returns 1 if saved set-group and saved set-user ID is available.  Returns 1 if saved set-group and saved set-user ID is available.
 .It Li kern.sbmax ( Dv KERN_SBMAX )  .It Li kern.sbmax ( Dv KERN_SBMAX )
 Maximum socket buffer size.  Maximum socket buffer size in bytes.
 .\" XXX units?  
 .It Li kern.securelevel ( Dv KERN_SECURELVL )  .It Li kern.securelevel ( Dv KERN_SECURELVL )
 See  See
 .Xr secmodel_securelevel 9 .  .Xr secmodel_securelevel 9 .
Line 1153  See
Line 1193  See
 .Xr sched 3 .  .Xr sched 3 .
 .El  .El
 .It Li kern.somaxkva ( Dv KERN_SOMAXKVA )  .It Li kern.somaxkva ( Dv KERN_SOMAXKVA )
 Maximum amount of kernel memory to be used for socket buffers.  Maximum amount of kernel memory to be used for socket buffers in bytes.
 .\" XXX units?  .It Li kern.sooptions
   Set the default socket option flags for
   .Xr socket 2
   creation.
   See
   .Xr setsockopt 2
   for a list of supported flags.
 .It Li kern.synchronized_io ( Dv KERN_SYNCHRONIZED_IO )  .It Li kern.synchronized_io ( Dv KERN_SYNCHRONIZED_IO )
 Returns 1 if the  Returns 1 if the
 .St -p1003.1b-93  .St -p1003.1b-93
Line 1231  Resource usage for the current user.
Line 1277  Resource usage for the current user.
 .It kern.uidinfo.proccnt        integer no  .It kern.uidinfo.proccnt        integer no
 .It kern.uidinfo.lwpcnt integer no  .It kern.uidinfo.lwpcnt integer no
 .It kern.uidinfo.lockcnt        integer no  .It kern.uidinfo.lockcnt        integer no
   .It kern.uidinfo.semcnt integer no
 .It kern.uidinfo.sbsize integer no  .It kern.uidinfo.sbsize integer no
 .El  .El
 .Bl -tag -width "123456"  .Bl -tag -width "123456"
Line 1241  Returns the number of active threads for
Line 1288  Returns the number of active threads for
 of each process is not counted.  of each process is not counted.
 .It Li kern.uidinfo.lockcnt  .It Li kern.uidinfo.lockcnt
 Number of locks held by the current user.  Number of locks held by the current user.
   .It Li kern.uidinfo.semcnt
   Number of semaphores held by the current user.
 .It Li kern.uidinfo.sbsize  .It Li kern.uidinfo.sbsize
 Number of bytes in socket buffers allocated to the current user.  Number of bytes in socket buffers allocated to the current user.
 .El  .El
Line 1305  Each element of the array contains the k
Line 1354  Each element of the array contains the k
 .Vt struct vnode *  .Vt struct vnode *
 followed by the vnode itself  followed by the vnode itself
 .Vt struct vnode .  .Vt struct vnode .
 .\" XXX: Undocumented: kern.lwp: no children?  
 .El  .El
 .Ss The machdep.* subtree  .Ss The machdep.* subtree
 The set of variables defined is architecture dependent.  The set of variables defined is architecture dependent.
Line 2126  The variables are as follows:
Line 2174  The variables are as follows:
 .It Li dgram.pcblist  .It Li dgram.pcblist
 The Protocol Control Block list structure for datagram sockets.  The Protocol Control Block list structure for datagram sockets.
 Parsed by  Parsed by
 .Xr netstat 8  .Xr netstat 1
 or  or
 .Xr sockstat 8 .  .Xr sockstat 1 .
 .It Li dgram.recvspace  .It Li dgram.recvspace
 The default datagram receive buffer size.  The default datagram receive buffer size.
 .It Li dgram.sendspace  .It Li dgram.sendspace
Line 2136  The default datagram send buffer size.
Line 2184  The default datagram send buffer size.
 .It Li seqpacket.pcblist  .It Li seqpacket.pcblist
 The Protocol Control Block list structure for Sequential Packet sockets.  The Protocol Control Block list structure for Sequential Packet sockets.
 Parsed by  Parsed by
 .Xr netstat 8  .Xr netstat 1
 or  or
 .Xr sockstat 8 .  .Xr sockstat 1 .
 .It Li stream.pcblist  .It Li stream.pcblist
 The Protocol Control Block list structure for stream sockets.  The Protocol Control Block list structure for stream sockets.
 Parsed by  Parsed by
 .Xr netstat 8  .Xr netstat 1
 or  or
 .Xr sockstat 8 .  .Xr sockstat 1 .
 .It Li stream.recvspace  .It Li stream.recvspace
 The default stream receive buffer size.  The default stream receive buffer size.
 .It Li stream.sendspace  .It Li stream.sendspace
Line 2607  See
Line 2655  See
 .Xr secmodel 9  .Xr secmodel 9
 for more information.  for more information.
 .It Li security.pax  .It Li security.pax
 Settings for PaX -- exploit mitigation features.  Settings for PaX \(em exploit mitigation features.
 For more information on any of the PaX features, please see  For more information on any of the PaX features, please see
 .Xr paxctl 8  .Xr paxctl 8
 and  and

Legend:
Removed from v.1.131  
changed lines
  Added in v.1.140

CVSweb <webmaster@jp.NetBSD.org>