lagg: Remove the member pr_num from struct lagg_proto
It is set but never used. Remove it to avoid confusion and save a
little space.
While here, use designated initializers to initialize the LAGG protocol
table. That improves readability, and it will be safer to initialize the
table if we introduce new protocols in the future.
No functional change intended.
Reviewed by: glebius
MFC after: 5 days
Differential Revision: https://reviews.freebsd.org/D55124
lagg: Make the none protocol a first-class citizen
All the other protocols have corresponding start and input routines,
which are used in the fast path. Currently the none protocol is
treated specially. In the fast path it is checked to indicate whether
a working protocol is configured. There are two issues raised by this
design:
1. In production, other protocols are commonly used, but not the
none protocol. It smells like an overkill to always check it in the
fast path. It is unfair to other commonly used protocols.
2. PR 289017 reveals that there's a small window between checking the
protocol and calling lagg_proto_start(). lagg_proto_start() is possible
to see the none protocol and do NULL deferencing.
Fix them by making the none protocol a first-class citizen so that it
has start and input routines just the same as other protocols. Then we
can stop checking it in the fast path, since lagg_proto_start() and
[13 lines not shown]
mandoc: Vendor import of upstream at 2025-09-26
Interesting changes:
+ mandoc db: Improve case sorting, found by our very own markj
+ history: Add macros for version 8 and 10 AT&T Unix
+ linter: Warn on blank lines in man(7) like mdoc(7)
+ manuals: Improve precision, man(7) syntax table, and roff(7) specifics
+ manuals: Fix PDF/PS footer regression detailed in our PR: 289786
Approved by: re (cperciva)
PR: 289786
MFC after: 3 days
(cherry picked from commit 59fc2b0166f71c791113379d16b8cef7039f289d)
(cherry picked from commit f763f12ed5eba2c95385dd2f93fc47a66dfa927c)
mandoc: Improve width calculation for GCC compat
Avoid implicitly converting a potentially negative page offset
to size_t and then back to int. While this was not a bug and the end
result was portably correct, Alexander Ziaee@ privately reported to me
that the GCC 14 in the FreeBSD Jenkins CI felt uneasy about it.
For clarity and readability, rewrite the truncation statement
to not mix signed and unsigned types, to not use explicit casts,
and make handling of the lower and upper cutoff more similar
to each other.
Approved by: re (cperciva)
Fixes: 6410c1b51637 (mandoc: vendor import of upstream at 2025-07-27)
MFC after: 3 days
Reported by: ivy
Reviewed by: ivy
Differential Revision: https://reviews.freebsd.org/D52127
[2 lines not shown]
mandoc: Vendor import of upstream at 2025-07-27
Groff Compat Edition -- Interesting changes:
+ italics in section/subsection headers are now also bold, like groff
+ display "LOCAL" in response to invalid section numbers, like groff
+ tbl(7) rendering has been tweaked to be more like groff
+ scaling has been improved to better render poorly generated manuals
+ display "UNTITLED" in response to invalid man(7) titles, like groff
+ improve mandocd error handling of broken pipes
+ manual footers now always show NAME(SECTION) on the right, like groff
Approved by: re (cperciva)
MFC after: 3 days
(cherry picked from commit 06410c1b51637e5e1f392d553b5008948af58014)
(cherry picked from commit a1f4ccd6c79470eb0180f4d9a012b24c267d2574)
cxgbetool.8: Fix some minor mechanical issues
+ Tag SPDX
+ Macros should not appear in titles, write a hopefully better title
+ Nm needs to be on it's own line in SYNOPSIS, fold it so this page
does not appear in unrelated search results (test case `apropos fw`)
+ Remove Ns's that do nothing and generate linter errors
+ Move list initializers to where they render, correcting linter errors
Unresolved:
This page produces an error when rendered due to the macros table.
I don't know how to fix that yet, but I'm interested in learning!
Reviewed by: mhorne
Approved by: mhorne (mentor)
Differential Revision: https://reviews.freebsd.org/D50320
(cherry picked from commit 8f25fac9ce2339ab5599e3af0ef7c6a1ea098aab)
top.1: Fix incorrect default value for -s option
The default delay between screen updates was incorrectly transfered
from roff(7) register that was used in previous version of man page.
Reviewed by: ziaee
Fixes: 9d6cce02a78c (initial pass to freebsdize)
Differential Revision: https://reviews.freebsd.org/D51503
(cherry picked from commit 6a41fd466701db71da443e1b87b31d463d99d056)
efitable.8: Nits
+ tag spdx
+ uncapitalize beginning of Nd, these should not be capitalized
+ add bars to show that long options XOR short options
+ remove stray paragraph marker for linter complaints
(cherry picked from commit 65e8951711934cbb2fa1d0d836705c59770039c0)
uuidgen.1: Correct SYNOPSIS, alphabetize options
Group options that can be used together accordingly in SYNOPSIS.
While here, tag SPDX and fix a parenthetical typo in EXAMPLES.
MFC after: 3 days
(cherry picked from commit abed9ab6eaad625ab9059d9799694876a4ae5b07)
mandoc: Vendor import of upstream at 2025-09-26
Interesting changes:
+ mandoc db: Improve case sorting, found by our very own markj
+ history: Add macros for version 8 and 10 AT&T Unix
+ linter: Warn on blank lines in man(7) like mdoc(7)
+ manuals: Improve precision, man(7) syntax table, and roff(7) specifics
+ manuals: Fix PDF/PS footer regression detailed in our PR: 289786
PR: 289786
MFC after: 3 days
(cherry picked from commit 59fc2b0166f71c791113379d16b8cef7039f289d)
mandoc: Improve width calculation for GCC compat
Avoid implicitly converting a potentially negative page offset
to size_t and then back to int. While this was not a bug and the end
result was portably correct, Alexander Ziaee@ privately reported to me
that the GCC 14 in the FreeBSD Jenkins CI felt uneasy about it.
For clarity and readability, rewrite the truncation statement
to not mix signed and unsigned types, to not use explicit casts,
and make handling of the lower and upper cutoff more similar
to each other.
Fixes: 6410c1b51637 (mandoc: vendor import of upstream at 2025-07-27)
MFC after: 3 days
Reported by: ivy
Reviewed by: ivy
Differential Revision: https://reviews.freebsd.org/D52127
(cherry picked from commit 93bc3d83a11a1dbebd264616d63af3dd32cc1c8c)
mandoc: Vendor import of upstream at 2025-07-27
Groff Compat Edition -- Interesting changes:
+ italics in section/subsection headers are now also bold, like groff
+ display "LOCAL" in response to invalid section numbers, like groff
+ tbl(7) rendering has been tweaked to be more like groff
+ scaling has been improved to better render poorly generated manuals
+ display "UNTITLED" in response to invalid man(7) titles, like groff
+ improve mandocd error handling of broken pipes
+ manual footers now always show NAME(SECTION) on the right, like groff
MFC after: 3 days
(cherry picked from commit 06410c1b51637e5e1f392d553b5008948af58014)
mmcsd.4: s/DESCRIPTION/HARDWARE + HISTORY + SPDX
This manual only describes a tiny amount suitable for the HW Relnotes.
Remove the description section and replace it with a hardware section
which will appear there.
MFC after: 3 minutes
Reported by: ivy
History Ref: 5bcb64f20afff21be511cc5 (Add mmc and mmcsd)
(cherry picked from commit 0c1c81c479bef8d3e67f93ea00fc5d34ccf5af33)
bsdinstall.8: Minor maintenance
Replace CD-ROMs with "discs, USBs, or network boot environments"
to both modernize aesthetic and also nudge youths to think at scale.
Since I'm disrupting the flow of these lines anyway, expand the VM
acronym because I think this is one of the first manuals people will
be looking at.
Reset list alignment to seven characters. It was at 19 characters,
and that was not enough to align them all, wasting many extra lines
by crunching all the words over. Seven actually bought us some lines
from six due to avg item size. Tag SPDX.
MFC after: 3 days
Discussed with: ivy, zi
(cherry picked from commit 81d9e08a4df42079d5e163b5991d5d6f3a28d4f0)
aacraid.4: Fix document description + tag SPDX
The document description previously just stated the name of the driver.
Replace this with the name of the controller families and specs that
it supports, in a similar fashion to other RAID drivers.
MFC after: 3 days
(cherry picked from commit d5d1e05efbedf67f1ef8e8428f9107401e369a0b)
umass.4: Modernize driver loading instructions
+ consolidate kernel configuration in SYNOPSIS
+ explain driver autoloading in DESCRIPTION
+ s/port/interface/ because of internal USBs
+ fix flow of remaining example
MFC after: 1 day
(cherry picked from commit d8a4843cb76ec1b7da8d5defafb7eef9a6cc1c21)
umass.4: Add HISTORY, HARDWARE, and SPDX
While here, break a long line that agitates the linter.
Fixes: cc16f1b9d9261f18 (Add umass.c)
MFC after: 1 hour
Discussed with: imp, ivy
diff --git a/sys/dev/usb/FILES b/sys/dev/usb/FILES
(cherry picked from commit 70993c2fbe1acb68f45bea5fc5fa086650876e23)
cli.lua.8: Reflow literal comments
Reflow comments in literal text blocks
so this manual is legible at MANWIDTH 78.
MFC after: 1 day
(cherry picked from commit de36d0dbaeaf05e9bf949fdf22b560c34b2c0d74)
sbp.4: Add a hardware section, fix markup nits
+ tag SPDX
+ add sysctl to apropos database
+ fix markup of examples and reflow a overly long line
+ add a hardware section for hw relnotes
MFC after: 3 days
(cherry picked from commit dee8e38f52266d9b2fa837607ff3a78f240a806d)