Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jul 2023 06:32:21 GMT
From:      Graham Perrin <grahamperrin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 666c54d12ec9 - main - hwpmc(4): instead of manual edition, use sysrc(8)
Message-ID:  <202307080632.3686WLv0071583@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by grahamperrin:

URL: https://cgit.FreeBSD.org/src/commit/?id=666c54d12ec941e1fa3741f28ba19223ec4d2c81

commit 666c54d12ec941e1fa3741f28ba19223ec4d2c81
Author:     Graham Perrin <grahamperrin@FreeBSD.org>
AuthorDate: 2023-07-08 06:24:18 +0000
Commit:     Graham Perrin <grahamperrin@FreeBSD.org>
CommitDate: 2023-07-08 06:30:52 +0000

    hwpmc(4): instead of manual edition, use sysrc(8)
    
    Exemplifying safe use of sysrc(8) has become commonplace in
    documentation such as the FreeBSD Handbook. Encourage its use.
    
    Consistency: 'the driver' (not 'this driver').
    
    Co-authored-by: Mina Galić <me+github@igalic.co>
    Reviewed-by:    imp, Mina Galić <me+github@igalic.co>
    Approved by:    imp
    MFC after:      3 days
    Pull-request:   https://github.com/freebsd/freebsd-src/pull/785
---
 share/man/man4/hwpmc.4 | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/share/man/man4/hwpmc.4 b/share/man/man4/hwpmc.4
index 3ae3ce726395..1794adb66460 100644
--- a/share/man/man4/hwpmc.4
+++ b/share/man/man4/hwpmc.4
@@ -30,7 +30,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd June 16, 2023
+.Dd July 8, 2023
 .Dt HWPMC 4
 .Os
 .Sh NAME
@@ -47,14 +47,12 @@ Additionally, for i386 systems:
 .Cd "device apic"
 .Ed
 .Pp
-To load the driver as a module at boot time, place the
-following line in
-.Xr rc.conf 5 :
+To load the driver as a module at boot time:
 .Bd -literal -offset indent
-kld_list="${kld_list} hwpmc"
+sysrc kld_list+=hwpmc
 .Ed
 .Pp
-Alternatively, to compile this driver into the kernel:
+Alternatively, to compile the driver into the kernel:
 .Bd -ragged -offset indent
 .Cd "device hwpmc"
 .Ed



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