Commit Graph

24076 Commits

Author SHA1 Message Date
Ali Mashtizadeh 44a983d249 libpmc: Query hwpmc for caps
This change allows for fine-grained capabilities per counter index. This
is particularly useful for AMD where subclasses are not exposed to the
general PMC code, but other architectures also have asymmetric behaviors
when it comes to specific counter indices.

A new PMC_OP_GETCAPS op is added to the hwpmc(4) ioctl interface.

Reviewed by:	mhorne
Sponsored by:	Netflix
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2058
2026-03-16 20:31:15 -03:00
zxbv3 fed90174ff crypto_request.9: Fix typo on crypto_initreq arguments
The function signature of `crypto_initreq()` was
incorrectly documented.

Signed-off-by:	Zixu Wu <zx@bv3.dev>
Reviewed by:	ziaee, pouria
Pull Request:	https://github.com/freebsd/freebsd-src/pull/2077
2026-03-16 13:24:13 +03:30
Mateusz Piotrowski 73f37a69f6 Revert "bsd.own.mk: Deorbit compat include of bsd.compiler.mk"
This reverts commit 0bebad8d07.

It might be that all that's needed to fix this is to add
".include <bsd.compiler.mk>" to some Makefiles. I'll look into it soon
but for now let's unbreak HEAD.

Approved by:		bnovkov (mentor)
Differential Revision:	https://reviews.freebsd.org/D55869
2026-03-15 20:45:29 +01:00
Mateusz Piotrowski 0bebad8d07 bsd.own.mk: Deorbit compat include of bsd.compiler.mk
Commit b946bedd09 ("Previous versions of bsd.own.mk [...]")
mentions that bsd.own.mk included bsd.compiler.mk as a temporary
workaround and was destined to be removed in FreeBSD 12. Do that now.

PR:		203540
Reviewed by:	bnovkov, imp
Approved by:	bnovkov (mentor)
Differential Revision:	https://reviews.freebsd.org/D55867
2026-03-15 19:47:35 +01:00
Christos Longros 462a1f6197 resolver.5: document six previously undocumented options
Document the edns0, inet6, insecure1, insecure2, no-check-names,
and rotate options which are parsed by res_init(3) but were not
described in the resolver(5) man page.

MFC after:	1 week
Signed-off-by:	Christos Longros <chris.longros@gmail.com>
Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D55864
2026-03-15 16:17:08 +01:00
Christos Longros e6f4e4ab8a re(4), rge(4): improve Realtek driver man pages
Add D-Link DGE-530(T) and Killer E2600 to the re(4) HARDWARE list.
Both are supported by the driver but were missing from the man page.

Also add cross-references between re(4) and rge(4) in SEE ALSO,
as both are Realtek NIC drivers.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D55745
2026-03-14 14:35:20 -07:00
Laurent Chardon 4efe7fa072 committers-ports.dot: Add new committer (laurent)
Update Mentor (thierry) and Mentee (laurent) Information.

Reviewed by:	thierry (mentor)
Approved by:	thierry (mentor)
Differential Revision:	https://reviews.freebsd.org/D55856
2026-03-14 11:26:34 -04:00
Kousuke Kannagi fa341366b1 committers-ports.dot: Add new committer (mce)
Update Mentor and Mentee Information.

Reviewed by: osa, fluffy (mentors)
Approved by: fluffy (mentor)
Differential Revision: https://reviews.freebsd.org/D55839
2026-03-14 03:04:12 +09:00
Aymeric Wibo 4da237aee3 alloca.3: Add entry about defining VLAs in same block as alloca() to BUGS
Refer to alloca() as a (builtin) function or macro, as it could be
defined as either depending on the compiler.

Paragraph about bug comes from Darwin's libc, and example added to
illustrate it.

Reviewed by:	bnovkov
Approved by:	bnovkov
MFC after:	3 days
Obtained from:	https://github.com/apple-oss-distributions/libc (partially)
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D55370
2026-03-13 21:08:31 +08:00
Gleb Smirnoff 72472e52e3 carp: retire ioctl(2) API
All supported stable branches use netlink(4) API to configure carp(4).
The deleted code also has kernel stack leak vulnerability, that requires
extra effort to fix.

Reviewed by:		pouria, kp
Differential Revision:	https://reviews.freebsd.org/D55804
2026-03-12 09:37:26 -07:00
Mitchell Horne a2b2ce2c15 DEFINE_IFUNC.9: update NOTES
ifuncs are now implemented for all architectures, so drop the caveat
statement.

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55815
2026-03-12 11:44:46 -03:00
John Baldwin 7e7a1b6153 pci: Export bus numbers for bridge devices in struct pci_conf
This exports bus information about bridges to userspace via the
less-privileged PCIOCGETCONF ioctl.  Previously if userspace wished to
query this information, it had to use direct PCI config register
access which requires higher privilege.

Reviewed by:	imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D55771
2026-03-10 12:49:21 -04:00
John Baldwin c3ac5f14c8 pci.4: Quote argument to -width for a list block
This fixes an mdoc warning and also properly indents this list.  While
here, update the quoted argument to be the longest tag in the list.

Also while here, correct the description of pd_numa_domain.  NUMA
domains are a property of the device, not of the driver.

Reviewed by:	ziaee, imp
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D55770
2026-03-10 12:49:10 -04:00
Maxim Konovalov d1180d47c9 bsd-family-tree: add FreeBSD 14.4 2026-03-10 01:42:40 +00:00
Ed Maste 72f0bc868b share/dict/web2: Sort
PR: 293659
Fixes: e49b6ead41 ("Add a number of five letter words to the dictionary")
2026-03-09 15:40:31 -04:00
Christos Longros 6ccfa67ac4 Fix typos in manual pages
bpf.4: accomodate -> accommodate
hier.7: compatability -> compatibility
namei.9: succesfull -> successful

Signed-off-by: Christos Longros <chris.longros@gmail.com>
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D55746
2026-03-09 14:34:27 -04:00
Alexander Ziaee 6560ee97e8 igc.4: Describe better
MFC after:	3 days
2026-03-09 13:43:10 -04:00
Bryan Drewery e2ed7ee02f bsd.progs.mk: Fix incremental META_MODE for prog sources
This fixes recursed builds not having meta mode enabled for them which
disabled dependency and and command change tracking.  We only want common
objects marked .NOMETA when recursing, not non-common objects.  The
common code expects _PROGS_COMMON_SRCS does not contain the prog source
or else it will be marked .NOMETA.

Add comments explaining the intent and cases being covered.

Fixes:	4ea5e107b1 ("<bsd.progs.mk>: Allow using SRCS for common sources")
Differential Revision:	https://reviews.freebsd.org/D55711
Reviewed by:	vexeduxr, sjg
2026-03-09 07:38:40 -07:00
Alexander Ziaee 74aec9f02d ports.7: Document DEFAULT_VERSIONS
MFC after:		3 days
Co-authored-by:		Adam Weinberger <adamw@FreeBSD.org>
Differential Revision:	https://reviews.freebsd.org/D55443
2026-03-06 18:47:20 -05:00
John Baldwin 1e4086d052 sys: Don't pass RF_ALLOCATED to bus_alloc_resource*
This is a nop as eventually these flags are passed to rman_reserve_resource
which unconditionally sets RF_ALLOCATED in the new flags for a region.
However, it's really a layering violation to use RF_ALLOCATED in relation
to struct resource objects outside of subr_rman.c as subr_rman.c uses
this flag to manage it's internal tracking of allocated vs free regions.

In addition, don't document this as a valid flag in the manual.  I
think the intention here was that if a caller didn't want to pass
RF_ACTIVE or RF_SHAREABLE, they could pass RF_ALLOCATED instead of 0,
but given the layering violation, I think it's best to just pass 0
instead in that case.

NB: The bhnd bus uses RF_ALLOCATED (along with RF_ACTIVE) in a
separate API to manage resource regions that are not struct resource
objects (but a separate wrapper object).  It would perhaps be cleaner
if the chipc_retain_region and chipc_release_region functions used
their own flag constants instead of reusing the rman(9) flags.

Reviewed by:	imp, kib
Differential Revision:	https://reviews.freebsd.org/D55683
2026-03-06 16:32:33 -05:00
Olivier Certner af2c7d9f64 style.9: Encourage style changes when doing significant modifications
The rule of allowing style changes when about half or more of a file (or
group of files), coupled with the advice of avoiding stylistic changes,
could be interpreted as forbidding most style changes, even in heavily
modified functions.

In order to rule out that interpretation and ease transition towards our
prescribed style:
1. Clarify that avoiding stylistic changes concerns only "standalone"
   ones.
2. Actually encourage changing the style, and extend the cases where it
   is explicitly allowed to do so to any single logical unit as little
   as a function, keeping the existing "about half" of modified code as
   a rule of thumb.

When point 2 above applies, encourage to commit pure style changes
separately, and to add style-only commits to '.git-blame-ignore-revs'.

Add a specific note ruling out "horizontal" style changes spanning
unrelated directories in the whole tree, which make the merge (MFC)
process more difficult.

While here, be slightly more stringent on new kernel code.

While here, regroup the paragraphs talking about style, and put them at
the end (before the recent C++ section).

While here, rephrase the requirement on third-party maintained code to
be slightly less stringent.

Reviewed by:    jhb, imp
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52885
2026-03-06 18:14:35 +01:00
Ed Maste 9cea0f0be7 bsd.linker.mk: Retire support for binutils 2.17.50
GNU binutils 2.17.50 is the last GPLv2 version, and we retained support
in FreeBSD while it was part of the in-tree toolchain.  The last parts
of binutils 2.17.50 were removed in commit 74e8d41e0a ("Retire
BINUTILS and BINUTILS_BOOTSTRAP options") and there is no longer a need
for the build infrastructure.

We retain build-id and ifunc in LINKER_FEATURES unconditionally for now,
as they may be tested by 3rd-party Makefiles.  We can however stop
testing for them in the tree.

Reviewed by:	imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55674
2026-03-05 15:01:21 -05:00
John Baldwin cf92fa3370 bsd.linker.mk: Sort list of linker features
Reindent the features as well to be friendly to long feature names.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D55656
2026-03-05 14:07:09 -05:00
John Baldwin 1b77f6ec6b bsd.linker.mk: Document ifunc, ifunc-noplt, riscv-relaxations features
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D55655
2026-03-05 14:07:09 -05:00
Pouria Mousavizadeh Tehrani 7f3b46fe54 ndp: Add support for Gratuitous Neighbor Discovery (GRAND)
Implement RFC 4861 Section 7.2.6 and RFC 9131, which is also
address one of the IPv6 deployment issues in RFC 9898 Section 3.9.
GRAND should be triggered by a change in link-layer address of interface
or by configuration of a new global ipv6 address after DAD completes.

Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D55015
2026-03-05 21:28:38 +03:30
Ed Maste 5d757312ad build: Retire LLVM_CXXFILT option
The LLVM_CXXFILT option was added when we used ELF Tool Chain tools by
default.  ELF Tool Chain's c++filt failed to demangle some symbols, so
we added a special case to install LLVM's version and enabled it by
default.

The rest of the LLVM tools are now used by default, as of commit
9fa94e1c09 ("Turn on WITH_LLVM_CXXFILT by default").  Simplify the
build logic by removing a special case and just include llvm-cxxfilt
with the rest of the LLVM utilities.

Reviewed by:	dim
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55654
2026-03-05 09:43:46 -05:00
Christos Longros 71e8b32415 src.conf.5: Fix "incompatibility" typo
MFC after:	3 days
Reviewed by:	ziaee
Signed-off-by:	Christos Longros <chris.longros@gmail.com>
Closes:		https://github.com/freebsd/freebsd-src/pull/2035
2026-03-04 13:32:33 -05:00
ShengYi Hung 546d925cb4 ichwd: Add manual for i6300esb watchdog
Reviewed by:    ziaee, mhorne
Approved by:    lwhsu (mentor)
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D54466
2026-03-04 21:51:13 +08:00
Eugene Grosbein f69eab727e me.4: note that it is a point-to-point interface
Add explicit note that me(4) works as a point-to-point pseudo device.

MFC after:	1 week
2026-03-04 15:06:05 +07:00
Eugene Grosbein 46ba263d6e me.4: link if_me kernel module to its manual page.
MFC after:	1 week
2026-03-04 14:29:26 +07:00
Ed Maste e80c45dbf7 src.conf.5: Regen after commit c47cefba83 2026-03-03 12:08:39 -05:00
Ed Maste b6bb2fc77e src.opts.mk: Retire BSD_CPIO option
Prior to commit 6973701a00 ("1. Make the BSD version of cpio the
default [1]") GNU cpio was installed unconditionally.  The BSD_CPIO
option was added when we introduced the BSD licensed, libarchive-based
cpio, to support installation of GNU cpio, libarchive cpio, or both.

GNU cpio was removed long ago and there is no longer a need for this
option.  We can just install BSD cpio unconditionally.

Reviewed by:	des
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55467
2026-03-03 09:25:53 -05:00
Ed Maste 4c822e8b7d src.conf.5: Regen for typo fix in commit 8e95158393 2026-03-03 09:25:53 -05:00
Ed Maste 7a323f8736 sys: Retire le(4)
We retired most obsolete 10 and 10/100 Ethernet NIC drivers in 2019 --
see commits following ebcf740a32 ("FCP-101: remove obsolete 10 and
10/100 Ethernet drivers.).

le(4) was retained with with the note "Emulated by QEMU, alternatives
don't yet work for mips64."  MIPS has since been removed from the tree
and emulators and virtual machines offer many other, more suitable
devices.

Reviewed by:	brooks
Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55516
2026-03-02 14:10:15 -05:00
Timo Völker c70755bc0d virtio: add loader tunables to sysctl
virtio_pci uses two loader tunables that should be more visible.
This patch adds these loader tunables to sysctl and describes them
in the virtio(4) man page.

Reviewed by:		imp (erlier version), tuexen
MFC after:		1 week
Differential Revision:	https://reviews.freebsd.org/D55533
2026-03-02 19:15:37 +01:00
Alexander Ziaee 06ac71cffb style.mdoc: Left angle bracket is not less-than
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D55300
2026-03-02 06:14:13 -05:00
Alexander Ziaee 47326cb470 style.mdoc: Remove synopsis formatting advice
Remove incorrect advice. The first rule was no spaces padding pipes
when showing alternates. Almost universally we not do this, and third
party manuals do not either. The second was using Cm to mark up symbols.
This advice is in conflict with mdoc(7), and the extended documentation
on mdoc linked below, which is also linked at the bottom of mdoc(7).

Conflicting information in our docs is a natural result of documentation
proliferation. The most important thing we can do to reduce technical
debt in the documentation is reduce the amount of doc overlap. Excessive
technical debt and conflicting rules is a barrier to new contributors.
This type of work requires thorough expertise, is not glamorous at all,
and to add insult to injury, is socially unsafe. To get new contributors
to the docs project, we must deduplicate documentation.

We have the mdoc manual, examples/mdoc, style.mdoc, and the fdp chapter
on manual pages. With this many, they will inevitably come to contain
conflicting information, and people will learn not to read them or work
on them.

MFC after:		3 days
Ref:			https://mandoc.bsd.lv/mdoc/style/commands.html
Differential Revision:	https://reviews.freebsd.org/D55298
2026-03-02 06:10:21 -05:00
Alexander Ziaee fae551b767 style.mdoc: Li macro is undeprecated for some time
Previously, the mdoc linter warned against using Li as it was deprecated
upstream. However, upstream undeprecated it since last year. As usual
when it comes to style, the best thing to do is to follow the existing
style of the page. We have many manuals which prefer double quotes.

MFC after:		3 days
Citation:		https://cvsweb.bsd.lv/mandoc/mdoc.7?rev=1.297
Differential Revision:	https://reviews.freebsd.org/D55297
2026-03-02 05:54:26 -05:00
Joseph Mingrone 5d9b185c33 share/mk/src.libnames.mk: Sort _DP entries
Requested by:	des
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D55598
2026-03-01 15:46:33 -04:00
Dag-Erling Smørgrav 05ca4837a3 libiscsiutil: Record dependency on libmd
MFC after:	3 days
Fixes:		6378393308 ("Add an internal libiscsiutil library.")
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D55596
2026-02-28 19:11:10 +01:00
Pat Maddox 77dc773ecf rc.8: Add rc.suspend as an alias
Make it consistent with the other lifecycle scripts, thus making it
more findable.

Reviewed by:	ziaee
Signed-off-by:	Pat Maddox <pat@patmaddox.com>
Closes:		https://github.com/freebsd/freebsd-src/pull/2047
2026-02-26 19:35:32 -05:00
Alexander Ziaee 2abdbe9d79 style.mdoc: Add example manuals to FILES
This is the OG meat and potatoes.

MFC after:		3 days
Reviewed by:		0mp, carlavilla
Differential Revision:	https://reviews.freebsd.org/D55301
2026-02-26 02:07:12 -05:00
Kevin Lo 25e89051df rge.4: correct media types in the manual page
Correct media types for 1000Mbit/s, 2500Mbit/s, 5000Mbit/s and 10Gbit/s.

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D55496
2026-02-26 10:52:14 +08:00
Alexander Ziaee f0b8355db6 ffs.4: Mlink to ufs.4
PR:		293423
MFC after:	3 days
Requested by:	bms
2026-02-24 08:26:20 -05:00
Yusuf Yaman 477ab96044 Add records about new ports committer (nxjoseph)
Update Mentor and Mentee Information to follow step
5 of the Committers Guide.

Reviewed by:	osa, vvd (mentors)
Approved by:    osa (mentor)
Differential Revision:	https://reviews.freebsd.org/D55457
2026-02-23 19:04:02 +03:00
Alexander Ziaee 451f593194 ports.7: Add port files to FILES
Add terse descriptions for the individual files that make up a port to
the FILES section of the ports reference manual.

MFC after:		3 days
Reviewed by:		adamw
Differential Revision:	https://reviews.freebsd.org/D55404
2026-02-22 02:43:49 -05:00
Ed Maste 9a44e42a2b Retire GNU diff3
We added the option to build BSD diff3 in commit 2201f7c49f ("Build
BSD diff3 if GNU diff3 is disabled.") and made it the default in
4d5c434ed1 ("diff3: use bsd diff3 by default") after resolving
deficiencies relative to GNU diff3.  Thus, we can now remove the GNU
diff3 build infrastructure and source.

Reviewed by:	bapt, ziaee
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46878
2026-02-21 20:53:19 -05:00
Aymeric Wibo 637a8ec157 stdckdint.3: Fix standard in comment
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D55360
2026-02-22 00:20:19 +01:00
Dag-Erling Smørgrav d4f6cb7542 build: Move all of lp under LPR option
* Tag related directories with package=lp

* Make the examples/printing directory conditional on MK_LPR

* Make the hosts.lpd(5) manual page conditional on MK_LPR

MFC after:	3 days
2026-02-21 22:25:49 +01:00
Christos Longros 102fed041d src.conf.5: Fix "incompatibility" typo
MFC after:	3 days
Reviewed by:	ziaee
Signed-off-by:	Christos Longros <chris.longros@gmail.com>
Closes:		https://github.com/freebsd/freebsd-src/pull/2035
2026-02-20 12:20:31 -05:00