From nobody Thu Oct 10 09:11:30 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XPPBp3MdZz5YjDy; Thu, 10 Oct 2024 09:11:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XPPBp2mvLz4mTc; Thu, 10 Oct 2024 09:11:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728551490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mShvvAVlwoRLN1xauHZ69vnSLdp5JgFz08ZLgZ13QcQ=; b=ja3zhfXsY+QXt6LxHx5qV9NMAWACU6FfM6AqjH387tMixnrU7fP4LCiZIfcQGhJvjuHV+2 qln72cX1cwt9G5YbWVGwHtMEX/R0chGb+OQs+JsYBZISIiSDkQ+213/h8tHX8HQ8VXEWLG 4LPIwpluRIfLkSTkuTpoOzK55X/WoZgBQmOCkfCAu0RSeeZ8U96WuMia3HadrJooOBWbgy HHayleeu9ru0c/B/q1Z8ck/Ao4zx+vN+Uxqhvl5ecE9NNkb486275TsUcoa2WKEFT+O5Jo FxKf7UD3XOxiJclkKdKYLOV6A0e55gBmqmq6gniZxH5rBmhmwzyH8/wRf45RLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728551490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mShvvAVlwoRLN1xauHZ69vnSLdp5JgFz08ZLgZ13QcQ=; b=u67XYV5Ir+l03dYzksdBJkGUGJ828t9M2RKh4PQAsrxYJKXQaAQmT46ntKbqO9iWSfbxfs ABSitNMJWt8pR5uWmagkYaomcVEVHqrZX5tIsJCUk7vqcqusqF0GXPmL8CtuLkGHjsidcd 8DUN+7iDLdeX5z5w7mafoRDzL5h41xKFX6HfQaXodFecAYPPXkoKuuDhQ/n14eKIKTbB5m sTfIT5T6RcAvp2fq3P0Bb8+0brLddi0sNU47oM/tV8DDpWEDXO2wOHKCFdQ270FVwFAimP rJeoq2Dhd6eC8PwlMixu8w+KAIqxkZUFdh7eR8EEA2CpBXrBz/xRz6dvDG7OFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728551490; a=rsa-sha256; cv=none; b=u/j+FsOf5f/s/MYpjXzRM5k0+TqwBjTYCujNizN+eWeIsBU9x5t6qLPtI1DG39lpnTntId ICjBzfoZgHkrG5+4YFUA9/kxW3Z6OU1Qvdqtf2b4CjWJwLpwraAQocUlkYEiMvO4m/w/aJ SUpK9fg3WsuL+AIt8J2fJJv/1AnJpPWa8FUiN3aRhl21gaTMKfFmeD9Vve9XZc2ng4nd9B LeudI7AU0GclMaSO28GCICI6v1oX61S8lq307uHn+IhiEOp+GTTsEiJj/d9bCJ/BJaQZFT fPW5WNkVvR1+/OE/uv+liej5yB+DbWPQFdCv2nSHxruiTQ8Njo9B2rNGOjdqpw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XPPBp2NXKzs4t; Thu, 10 Oct 2024 09:11:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49A9BUIf063972; Thu, 10 Oct 2024 09:11:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49A9BUdh063969; Thu, 10 Oct 2024 09:11:30 GMT (envelope-from git) Date: Thu, 10 Oct 2024 09:11:30 GMT Message-Id: <202410100911.49A9BUdh063969@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 387094ca8a8c - stable/14 - sysctl.3: document missing fixed oids from the kern. node List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 387094ca8a8c94d45d78b24313d2e7f70b60361e Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=387094ca8a8c94d45d78b24313d2e7f70b60361e commit 387094ca8a8c94d45d78b24313d2e7f70b60361e Author: Konstantin Belousov AuthorDate: 2024-09-27 03:08:09 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-10 09:10:32 +0000 sysctl.3: document missing fixed oids from the kern. node (cherry picked from commit 4e2803878f547f2036d8e9bde4633e0ed96bc46c) --- lib/libc/gen/sysctl.3 | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3 index 4a9659947f06..485cd7b455e4 100644 --- a/lib/libc/gen/sysctl.3 +++ b/lib/libc/gen/sysctl.3 @@ -327,6 +327,7 @@ information. .Bl -column "KERNXMAXFILESPERPROCXXX" "struct clockrateXXX" -offset indent .It Sy Second Level Name Ta Sy Type Ta Sy Changeable .It Dv KERN_ARGMAX Ta integer Ta no +.It Dv KERN_ARND Ta integer Ta no .It Dv KERN_BOOTFILE Ta string Ta yes .It Dv KERN_BOOTTIME Ta struct timeval Ta no .It Dv KERN_CLOCKRATE Ta struct clockinfo Ta no @@ -334,9 +335,13 @@ information. .It Dv KERN_HOSTID Ta integer Ta yes .It Dv KERN_HOSTUUID Ta string Ta yes .It Dv KERN_HOSTNAME Ta string Ta yes +.It Dv KERN_IOV_MAX Ta integer Ta yes .It Dv KERN_JOB_CONTROL Ta integer Ta no +.It Dv KERN_LOCKF Ta struct kinfo_lockf Ta no +.It Dv KERN_LOGSIGEXIT Ta integer Ta yes .It Dv KERN_MAXFILES Ta integer Ta yes .It Dv KERN_MAXFILESPERPROC Ta integer Ta yes +.It Dv KERN_MAXPHYS Ta integer Ta no .It Dv KERN_MAXPROC Ta integer Ta no .It Dv KERN_MAXPROCPERUID Ta integer Ta yes .It Dv KERN_MAXVNODES Ta integer Ta yes @@ -348,15 +353,28 @@ information. .It Dv KERN_OSTYPE Ta string Ta no .It Dv KERN_POSIX1 Ta integer Ta no .It Dv KERN_PROC Ta node Ta not applicable +.It Dv KERN_PS_STRINGS Ta integer Ta no .It Dv KERN_SAVED_IDS Ta integer Ta no .It Dv KERN_SECURELVL Ta integer Ta raise only .It Dv KERN_UPDATEINTERVAL Ta integer Ta no +.It Dv KERN_USRSTACK Ta integer Ta no .It Dv KERN_VERSION Ta string Ta no .El .Bl -tag -width 6n .It Li KERN_ARGMAX The maximum bytes of argument to .Xr execve 2 . +.It Li KERN_ARND +.Xr arc4rand 9 +Fills the buffer with random bytes from in-kernel random data generator. +This is an alternative interface for +.Xr read 2 +of +.Xr random 4 +device, which does not depend on accessibility and correct mounting options +of the +.Xr devfs 4 +node. .It Li KERN_BOOTFILE The full pathname of the file from which the kernel was loaded. .It Li KERN_BOOTTIME @@ -381,8 +399,18 @@ Get or set the host ID. Get or set the host's universally unique identifier (UUID). .It Li KERN_HOSTNAME Get or set the hostname. +.It Li KERN_IOV_MAX +The maximum accepted number of elements in an input-output vector (iovec), +see +.Xr readv 2 +and +.Xr writev 2 . .It Li KERN_JOB_CONTROL Return 1 if job control is available on this system, otherwise 0. +.It Li KERN_LOCKF +Returns the list of the file advisory locks currently known to kernel. +.It Li KERN_LOGSIGEXIT +Controls logging of process exit due to untrapped signals. .It Li KERN_MAXFILES The maximum number of files that may be open in the system. .It Li KERN_MAXFILESPERPROC @@ -391,6 +419,10 @@ This limit only applies to processes with an effective uid of nonzero at the time of the open request. Files that have already been opened are not affected if the limit or the effective uid is changed. +.It Li KERN_MAXPHYS +Specifies the maximum block I/O size. +Can be changed by the tunable +.Ev kern.maxphys . .It Li KERN_MAXPROC The maximum number of concurrent processes the system will allow. .It Li KERN_MAXPROCPERUID @@ -473,12 +505,18 @@ implies the current process. .It Dv KERN_PROC_ARGS Ta "A process ID" .It Dv KERN_PROC_PATHNAME Ta "A process ID" .El +.It Li KERN_PS_STRINGS +Reports the location of the process +.Vt ps_strings +structure after exec, for the ABI of the querying process. .It Li KERN_SAVED_IDS Returns 1 if saved set-group and saved set-user ID is available. .It Li KERN_SECURELVL The system security level. This level may be raised by processes with appropriate privilege. It may not be lowered. +.It Li KERN_USRSTACK +Reports the top of the main thread user stack for the current process. .It Li KERN_VERSION The system version string. .El