Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2025 09:27:05 GMT
From:      Olivier Certner <olce@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 1ca993dd4544 - stable/14 - sysctl.9: Constant integer example: Do not promote 'debug.sizeof'
Message-ID:  <202505130927.54D9R5vF097983@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by olce:

URL: https://cgit.FreeBSD.org/src/commit/?id=1ca993dd454445ad766f8b8b39103e09c1dccce9

commit 1ca993dd454445ad766f8b8b39103e09c1dccce9
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-05-09 14:38:32 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-05-13 09:26:52 +0000

    sysctl.9: Constant integer example: Do not promote 'debug.sizeof'
    
    Replace it with another one, selected from current in-tree uses.
    
    MFC after:      1 day
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 129a6cf886e108b67f637a271f003519c99b9abd)
---
 share/man/man9/sysctl.9 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/man/man9/sysctl.9 b/share/man/man9/sysctl.9
index 83f526b349a1..44f042b1d789 100644
--- a/share/man/man9/sysctl.9
+++ b/share/man/man9/sysctl.9
@@ -931,8 +931,8 @@ Examples of integer, opaque, string, and procedure sysctls follow:
  * flags are CTLFLAG_RD, the variable pointer is SYSCTL_NULL_INT_PTR,
  * and the value is declared.
  */
-SYSCTL_INT(_debug_sizeof, OID_AUTO, bio, CTLFLAG_RD, SYSCTL_NULL_INT_PTR,
-    sizeof(struct bio), "sizeof(struct bio)");
+SYSCTL_INT(_kern, OID_AUTO, hz_max, CTLFLAG_RD, SYSCTL_NULL_INT_PTR, HZ_MAXIMUM,
+    "Maximum hz value supported");
 
 /*
  * Example of a variable integer value.  Notice that the control



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505130927.54D9R5vF097983>