From nobody Mon Oct 07 10:51:33 2024 X-Original-To: dev-commits-src-main@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 4XMbYd5JzPz5Xj3w; Mon, 07 Oct 2024 10:51:33 +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 4XMbYd3nR1z4CwN; Mon, 7 Oct 2024 10:51:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728298293; 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=S25VawZy9LBv9m8h5YGTx1KZCmS3CAIIXn5odlxaG0s=; b=p24AaYrwUrSBq3nJ5JAFL8grujDNeYHXN3Udc0OF3KNNVl/Jt5kAkym7HUY+LeLDh27E7Z oeczd9akh2/Eg7YpYAxt3S5AP4d4YdYsfqItrHQ7lrnyXCdhlOnP7AkvQ8cLsQTRoNs7lD YQiPNL6u5KPL3kGzjZinUvqKCojNI7AWk5fSIuLBTA9GMg2p9mSasoKBk6pw4oGJQL21fx LCJS1nzsSbrWkJM1Pmm7BUEAUAnvtq+cAO2Ny1RxUG6kkl/MZ7XouRa3F8tVutkeet9ZJp j5GiNm3QW+n3vEX+mYgaBMZ07IDkmHtWmUvHn4eb/0whc2flMmzgu9L5p3J3xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728298293; 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=S25VawZy9LBv9m8h5YGTx1KZCmS3CAIIXn5odlxaG0s=; b=QVImFtu0btBG9KwSSzkRfxShVFavAvO0qUYsccQlhhqiaFvbPFd9WAnCuTTym2x4thYP4e WlbXoyRhBJxSwY7ZKSz3Rdh7Ek7vMgwWvWPM5DmMakxckv4X9GA7qtObWzXvuv3gLkEvMw lJzgK+QRaLZV+ZjbSLhuDR1rzMmiVitH8FahSPiBwuMMhNAphdFCB8RxyyyxcZcSWtyxcu 03E/29IlD+wwoXoGd3zzVirxPsMoytCNo5Axw1ffOav6j19LyfnH/b0XEB0vneIDqxFgba Y7uJlmEHIIgGYaA8yUtIoVEI0Tq3I0h8zRc4Ko7xAqmiOkJHGTZ01OTg0nTmJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728298293; a=rsa-sha256; cv=none; b=E3hVnnJRUMZ6XaRFF03N9aJV//Xd8bBXy0gxE+kGAs6St4uOuyZPkZf/oExhPCoDrmwrJq oNFrIBUKYaM7ufckZh6EbKQz71zDAPHYrZmrk2YpTmzVeuuYCSgHkF431fxxnli9Xz4JFP p7+kvG0ASadO+zK0ijD2/xqr6DlaXcPuV/JshbkkkGLDIQAgeZLgGD/73pBzX1Ybtseqel ti0sErurxkR8JtO75x/WYRPCCwgfAO/txDuCqVZ4CK4W1TfpTZeH+CcCmhFk/Waw8MQaOr K/O2SGTPVQAMT6VyiB9FWUxZuyiM6bRzJ7DnHw27Z8rJD6UkuMlc6j1wubgY9g== 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 4XMbYd3Nw7zjwW; Mon, 7 Oct 2024 10:51:33 +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 497ApXW6064366; Mon, 7 Oct 2024 10:51:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 497ApXSr064363; Mon, 7 Oct 2024 10:51:33 GMT (envelope-from git) Date: Mon, 7 Oct 2024 10:51:33 GMT Message-Id: <202410071051.497ApXSr064363@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 4e2803878f54 - main - sysctl.3: document missing fixed oids from the kern. node List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 4e2803878f547f2036d8e9bde4633e0ed96bc46c Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4e2803878f547f2036d8e9bde4633e0ed96bc46c commit 4e2803878f547f2036d8e9bde4633e0ed96bc46c Author: Konstantin Belousov AuthorDate: 2024-09-27 03:08:09 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-07 10:49:54 +0000 sysctl.3: document missing fixed oids from the kern. node Reviewed by: olce Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D46823 --- 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 35109b8d1da8..92e30cd6cdb4 100644 --- a/lib/libc/gen/sysctl.3 +++ b/lib/libc/gen/sysctl.3 @@ -325,6 +325,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 @@ -332,9 +333,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 @@ -346,15 +351,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 @@ -379,8 +397,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 @@ -389,6 +417,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 @@ -471,12 +503,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