Skip to content

Commit

Permalink
hwpmc(4): instead of manual edition, use sysrc(8)
Browse files Browse the repository at this point in the history
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ć <[email protected]>
Reviewed-by:    imp, Mina Galić <[email protected]>
Approved by:    imp
MFC after:      3 days
Pull-request:   freebsd#785
  • Loading branch information
grahamperrin and igalic committed Jul 8, 2023
1 parent b370ef1 commit 666c54d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions share/man/man4/hwpmc.4
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd June 16, 2023
.Dd July 8, 2023
.Dt HWPMC 4
.Os
.Sh NAME
Expand All @@ -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
Expand Down

0 comments on commit 666c54d

Please sign in to comment.