Commit graph

22471 commits

Author SHA1 Message Date
Mark Johnston
3b856fd43f wg: Add netmap support
When in netmap (emulated) mode, wireguard interfaces prepend or strip a
dummy ethernet header when interfacing with netmap.  The netmap
application thus sees unencrypted, de-encapsulated frames with a fixed
header.

In this mode, netmap hooks the if_input and if_transmit routines of the
ifnet.  Packets from the host TX ring are handled by wg_if_input(),
which simply hands them to the netisr layer; packets which would
otherwise be tunneled are intercepted in wg_output() and placed in the
host RX ring.

The "physical" TX ring is processed by wg_transmit(), which behaves
identically to wg_output() when netmap is not enabled, and packets
appear in the "physical" RX ring by hooking wg_deliver_in().

Reviewed by:	vmaffione
MFC after:	1 month
Sponsored by:	Klara, Inc.
Sponsored by:	Zenarmor
Differential Revision:	https://reviews.freebsd.org/D43460
2024-06-03 11:06:55 +02:00
Franco Fichtner
238178fa38 rc: also run NAME_setup on NAME_reload
Reload is used for service reconfiguration as well
and lacks a NAME_prepend-like mechanism so it makes
sense to extend the NAME_reload hook into this
action.

precmd may use configuration checks and blocks setup
from doing its designated work (e.g. nginx). In moving
the invoke of the setup script in front allows us to
provide custom scripts for config file generation and
fixing prior to precmd checking configuration integrity.

Also introduce _run_rc_setup to separate the launcher
from the main one. Let it run correctly in the case
of restart_precmd and block further execution as
would be the case in start due to the internal plumbing
of restart being split into calling stop and start
afterwards.

PR: https://reviews.freebsd.org/D36259
2024-06-03 11:06:53 +02:00
Franco Fichtner
54239bf2e8 etc: OPNsense customisations
o add more key bindings to .cshrc
o add .vimrc to base installation
o disable fortune cookie
2024-06-03 11:06:53 +02:00
Eric Joyner
f9b5ecd257 iavf(4): Improve man page
MFC after:	3 days
Reviewed by:	erj
Differential Revision:	https://reviews.freebsd.org/D43093

(cherry picked from commit ba222f6fb4b226ab24beaa13a8591dcb624ae70f)
(cherry picked from commit 4c380c44c8)

Approved by:	re (karels)
2024-05-23 04:46:00 +02:00
Mathieu Simon
3cec7e14b0 Add man page for the ice network driver.
PR:		262892
MFC after:	3 days
Reviewed by:	concussious.bugzilla@runbox.com, erj
Differential Revision:	https://reviews.freebsd.org/D45270

(cherry picked from commit 8e5e42d54ad3093e38263814d1f3e7d8406d5421)
(cherry picked from commit 42e50eaf7f)

Approved by:	re (karels)
2024-05-23 04:45:25 +02:00
Alexander Ziaee
39f92a4c4c networking.7 : create network quickstart guide
Now that the handbook has been moved to ports, I think it's very nice to
have a network quickstart guide in-band, in base, in the system manual.
If the user uses any of the following terms "man -k
{network,networking,wifi,quickstart}" this page will come up, which is I
think a very common use case for new users.

Currently, this document explains connecting to a basic Ethernet
network, a basic wifi network, scanning for wifi networks, and airplane
mode, as well as linking to other sections, including the handbook

Co-authored-by: Graham Perrin <grahamperrin@gmail.com>
Reviewed by: imp, bcr, freebsd@igalic.co
Pull Request: https://github.com/freebsd/freebsd-src/pull/833

(cherry picked from commit 75eda0096bf83b9b88996d9903b5d4e504047eba)
(cherry picked from commit 5dced41439)

Approved-by: re (cperciva)
2024-05-21 14:09:04 -06:00
Ed Maste
25c2d762af Enable kernel reproducible builds on stable branch
When the stable/13 branch was created the userland knob (in
share/mk/src.opts.mk) was changed to default to yes, but the kernel
default was not changed.  These two should always have the same default.
Regenerate src.conf.5, as the differing defaults previously confused
`makeman`.

Fixes: bfd1570515 ("Create the stable/13 branch")
Sponsored by: The FreeBSD Foundation
Approved by:	re (cperciva)

(cherry picked from commit d8644a5d2458588dd7d8e44bd23c6cacaead19b7)
(cherry picked from commit 3a8e15354e)
2024-05-03 15:23:27 -07:00
Alexander Ziaee
63b747823b hier.7: polish entry to system manual
Entries reworded to improve grammar or add keywords:
- document description: substitute layout for index for first-glance
- /etc/freebsd/update.conf
- /usr/share/vi/

Entries that have been wordshuffled for brevity or consistency:
- /{bin,libexec,nonexistent,sbin,tmp}/
- /boot/dtb/overlays/
- /boot/{defaults,efi,kernel,lua}/
- /usr/libexec/
- /var/{db,games,lib,log/{bsdisks.log,spool/,tmp/}}
- /usr/share/sysroot/VERSION/MACHINE.MACHINE_ARCH/ (unfold a little)
- /usr/local/share/doc/freebsd/ (unfold a little)

Entries that have macro or linking adjustments:
- /{boot,boot/efi,dev,etc,home,sbin,usr/bin}/ (overview or intro pages)
- /media/ (bsdisks is from ports, but afaik pulled by every desktop)
- /usr/share/{lib/,lib/dtrace/,libdata/games/,man/}/ (intro pages)
- /var/log/messages (syslog(3) -> syslogd(8))

Entries that have been added:
- /dev/{cuaU0,vmm,zvol}/
- /usr/share/{atf,bhyve}/
- /usr/share/libexec/hyperv/ (thanks @rtprio)
- /local/<subdirectories>/
- /var/log/debug.log (thanks @pauamma)
- /var/spool/{lock,lpd}

Please forgive my earlier mistakes fixed in this commit:
- /{dev,/usr/share/{calendar,misc}} : accidentally reverted description
- /etc/local-unbound.conf/ (wrong link)
- /usr/{freebsd-dist,lib32,libdata},/var/log/{dmesg.today,lpd-errs} (typos)
- /{usr/libdata/gcc/,var/log/bsdisks.log} (removed, unnecessary)

PR:		261349
Reviewed by:	mhorne
MFC after:	1 week
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1131

(cherry picked from commit 9dfe484e126d0e477a0d79b3f7a2350af9f5e025)
2024-05-01 15:43:20 -03:00
Mitchell Horne
a7a6873023 BSD.usr.dist: remove empty /usr/libdata/gcc directory
I am unsure of its exact historical usage, but, we no longer ship GCC
with FreeBSD, and it should have been removed.

Reviewed by:	imp, emaste
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D44440

(cherry picked from commit cc1268a926772900a08c61fd791bb66df1e6c30c)
2024-05-01 15:42:57 -03:00
Alexander Ziaee
3d509058db hier.7: various improvements
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/831

(cherry picked from commit 03ee09148950c9ea99987bfee8a769473079745b)
(cherry picked from commit 94dedfdfa96baef02e4ad661512a267ae5647d7b)
(cherry picked from commit a5b07274fcaf71fc9c14947a75fbe0a13d381a79)
(cherry picked from commit f19875b66bf403ed5c57f82bbe2a3f42475d0a06)
2024-05-01 15:42:27 -03:00
Mitchell Horne
1d921be5a8 ieee80211_vap(9): fix the title
MFC after:	3 days

(cherry picked from commit c5989febcc00be41e05b4b714bbfc6ea1359abaf)
2024-05-01 15:36:48 -03:00
Konstantin Belousov
42b071cbc9 pthread_sigqueue(3): document
(cherry picked from commit 91da6becae6291533b9b59646b59bace2f905c81)
2024-04-30 03:48:09 +03:00
Kajetan Staszkiewicz
9f3032b76b pf tests: Add option to send fragmented packets
Add option to send fragmented packets and to properly sniff them by
reassembling them by the sniffer itself.

Reviewed by:	kp
Sponsored by:	InnoGames GmbH
Differential Revision:	https://reviews.freebsd.org/D42354

(cherry picked from commit d7c9de2d68ca81c557e069c2b431529cf597886c)

pf: Fix packet reassembly

Don't drop fragmented packets when reassembly is disabled, they can be
matched by rules with "fragment" keyword. Ensure that presence of scrub
rules forces old behaviour.

Reviewed by:	kp
Sponsored by:	InnoGames GmbH
Differential Revision:	https://reviews.freebsd.org/D42355

(cherry picked from commit ede5d4ff5b39ccbc193c30fb6c093c7c4de9a464)

pf: Update documentation regarding matching, scrubbing and reassembly

Update pf documentation:

 - default behaviour of fragment reassembly
 - introduction of scrub option for filter rules
 - disadvantages of using the old scrub ruleset
 - options supported for match rules
 - fix missing list block end
 - remove duplicate description of match filter rule
 - update example to modern syntax

Reviewed by:	kp
Fragments obtained from:	OpenBSD
Sponsored by:	InnoGames GmbH
Differential Revision:	https://reviews.freebsd.org/D42270

(cherry picked from commit 5ed470bdb9da6442d6030cf0a7a8493f759fbb43)
2024-04-24 22:11:56 +00:00
Mateusz Piotrowski
b8e171b73a organization.dot: Fix typos
MFC after:	3 days

(cherry picked from commit 806bd5e00658e66a5625397335cafa4748112f14)
2024-04-24 13:40:13 +02:00
Mark Johnston
753de72517 tarfs.5: Provide some guidance on zstd frame sizes
Reviewed by:	des, emaste
MFC after:	2 weeks
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D44636

(cherry picked from commit fd56d24725860a3c1f12180cf8503d38d8d0c70d)
2024-04-22 09:47:37 -04:00
Dimitry Andric
2dff504999 share/mk/bsd.cpu.mk: add F16C feature for i386 and amd64 architectures
As discussed in bug 278417, some ports require the F16C instruction set
to compile, but there is no way yet to detect whether the currently
chosen CPUTYPE supports this feature.

Add the feature to the MACHINE_CPU variable, for each processor that
supports it. The list of processors was extracted from clang 18's -dM
output, filtered on the __F16C__ define.

PR:		278417
Reviewed by:	brooks, emaste
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D44848

(cherry picked from commit 2fd73b7126d7d7e5701e001af929411ce7a0c5f1)
2024-04-21 20:44:21 +02:00
Christopher Davidson
d16abff362 bhnd_erom.9: remove self-reference
Change .Xr to .Fn, which quiets a mandoc warning.

Reviewed by:	mhorne
MFC after:	3 days
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit 81727a3dd38287d437d1e7e416dd89107a706e55)
2024-04-18 15:18:34 -03:00
Christopher Davidson
de436a4fbf device_add_child.9: remove self-reference
Change .Xr to .Nm, which quiets a mandoc warning

Reviewed by:	mhorne
MFC after:	3 days
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit f9ea7b6e8253273ebb1023c4380a305e6d3cf02b)
2024-04-18 15:18:34 -03:00
Christopher Davidson
ac3bd5959b cfumass.4: remove self-reference
Change .Xr to .Nm, which quiets a mandoc warning.

Reviewed by:	mhorne
MFC after:	3 days
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1135

(cherry picked from commit f8ce29b63181912e01625addb47168e987d9bbed)
2024-04-18 15:18:34 -03:00
Christopher Davidson
c8aac78681 assert.3: Update manual page based on mandoc -Tlint
Execute the mandoc -Tlint option on assert(3). This results in two areas
of updates:

Remove invalid Rs block
Remove invalid Re block

Reviewed by:	mhorne
MFC after:	3 days
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1132

(cherry picked from commit 3f72f36cf2f92e00a248f729d50803232ff4cef8)
2024-04-18 15:18:34 -03:00
Mitchell Horne
e9d06e89ce KASSERT(9): describe history of MPASS
The macro originates from BSD/OS, with a different etymology than what
is presented. Add a brief HISTORY section to capture this.

Reviewed by:	emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D44439

(cherry picked from commit 5d956e11ed3713ff769d51b71f7b4ee6ce0085fe)
2024-04-18 15:17:52 -03:00
Mitchell Horne
929d8ef0f7 KASSERT(9): add assertion message guidelines
Add some text describing how to create useful assertion messages.
Improve and add to the EXAMPLES.

See the discussion prompting this on -hackers:
https://mail-archive.freebsd.org/cgi/mid.cgi?57o4rnnq-013s-3nsn-59n5-4ssn1pq81s94

Reviewed by:	emaste
Discussed with:	imp, bz
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D44434

(cherry picked from commit 83a426d13a6a384e63e75d8252c03dd40af3817e)
2024-04-18 15:17:52 -03:00
Alexander Ziaee
5f375fdbdf em.4: add interfaces to name section
Improving first-glance comprehension that this manual page applies to
igb/lem interfaces provided by the em(4) driver.

While here, tag SPDX, link the framework, and shuffle a sentence to fix
linter warning.

Co-authored-by: mhorne
Reviewed by:	mhorne
MFC after:	1 week
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1134

(cherry picked from commit 501f7e7bf847c66e3869b533805e76897e4685b9)
2024-04-18 15:16:56 -03:00
Graham Perrin
9050a43e8e intro.9: minor changes
A correction: 'and' -> 'an'. Plus, several tweaks for brevity or
clarity.

Reviewed by:	mhorne
MFC after:	3 days
Pull Request:	https://github.com/freebsd/freebsd-src/pull/813

(cherry picked from commit 712fd5ac9181b544d8ffcf88ab6313233c8ddaed)
2024-04-18 15:11:30 -03:00
Christos Margiolis
d692c314d2 sound: Implement asynchronous device detach
Hot-unplugging a sound device, such as a USB sound card, whilst being
consumed by an application, results in an infinite loop until either the
application closes the device's file descriptor, or the channel
automatically times out after hw.snd.timeout seconds. In the case of a
detach however, the timeout approach is still not ideal, since we want
all resources to be released immediatelly, without waiting for N seconds
until we can use the bus again.

The timeout mechanism works by calling chn_sleep() in chn_read() and
chn_write() (see pcm/channel.c) in order to send the thread to sleep,
using cv_timedwait_sig(). Since chn_sleep() sets the CHN_F_SLEEPING flag
while waiting for cv_timedwait_sig() to return, we can test this flag in
pcm_unregister() (called during detach) and wakeup the sleeping
thread(s) to immediately kill the channel(s) being consumed.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 months
PR:		194727
Reviewed by:	dev_submerge.ch, bapt, markj
Differential Revision:	https://reviews.freebsd.org/D43545

(cherry picked from commit 44e128fe9d92c1a544b801cb56e907a66ef34691)
2024-04-18 14:39:31 +02:00
Christos Margiolis
e6c51f6db8 sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)
Currently the snd_clone framework creates device nodes on-demand for
every channel, through the dsp_clone() callback, and is responsible for
routing audio to the appropriate channel(s). This patch gets rid of the
whole snd_clone framework (including any related sysctls) and instead
uses DEVFS_CDEVPRIV(9) to handle device opening, channel allocation and
audio routing. This results in a significant reduction in code size as
well as complexity.

Behavior that is preserved:

- hw.snd.basename_clone.
- Exclusive access of an audio device (i.e VCHANs disabled).
- Multiple processes can read from/write to the device.
- A device can only be opened as many times as the maximum allowed
  channel number (see SND_MAXHWCHAN in pcm/sound.h).
- OSSv4 compatibility aliases are preserved.

Behavior changes:

Only one /dev/dspX device node is created (on attach) for each audio
device, as opposed to the current /dev/dspX.Y devices created by
snd_clone. According to the sound(4) man page, devices are not meant to
be opened through /dev/dspX.Y anyway, so it is best if we do not create
device nodes for them in the first place. As a result of this, modify
dsp_oss_audioinfo() to print /dev/dspX in the "ai->devnode", instead of
/dev/dspX.Y.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 months
Reviewed by:	dev_submerge.ch, bapt, markj
Differential Revision:	https://reviews.freebsd.org/D44411

(cherry picked from commit e8c0d15a64fadb4a330f2da7244becaac161bb70)
2024-04-18 14:39:26 +02:00
Warner Losh
fcfd7396ae loader: Add new option WITH_LOADER_BIOS_TEXTONLY
This option will omit all the graphics support, the teken terminal
library, video mode support, etc and support a simple, basic, text-only
video console for the x86 BIOS boot loader. It uses the FreeBSD 12
version of vidconsole.c. It defaults to NO.

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D43912

(cherry picked from commit 63e9c976640d05ef65842eaf3d54de9a8d48cbdc)
2024-04-16 13:54:25 -06:00
Lexi Winter
3e69ab88a0 periodic/daily/801.trim-zfs: Add a daily zfs trim script
As mentioned in zpoolprops(7), on some SSDs, it may not be desirable to
use ZFS autotrim because a large number of trim requests can degrade
disk performance; instead, the pool should be manually trimmed at
regular intervals.

Add a new daily periodic script for this purpose, 801.trim-zfs.  If
enabled (daily_trim_zfs_enable=YES; the default is NO), it will run a
'zpool trim' operation on all online pools, or on the pools listed in
'daily_trim_zfs_pools'.

The trim is not started if the pool is degraded (which matches the
behaviour of the existing 800.scrub-zfs script) or if a trim is already
running on that pool.  Having autotrim enabled does not inhibit the
periodic trim; it's sometimes desirable to run periodic trims even with
autotrim enabled, because autotrim can elide trims for very small
regions.

PR:		275965
MFC after:	1 week
Reviewed by:	imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/956

(cherry picked from commit 493908c4b45c7b75e4a6b4aea3b5b63ea5c268d5)
2024-04-16 13:54:20 -06:00
Warner Losh
656183c21b share/mk: Don't install only differing in case files on case insensitive fs
MacOS has case insensitive filesystems by default. So trying to link
between foo.X and FOO.X causes an error of some sort since we unlink the
old foo file destroying the newly installed foo due to the insensitive
nature of the FS. Assume that this is true on darwin/macos, though it is
only try by default there.

Perhaps install should grow smarts to know when this is the case, though
that looked much trickier. There didn't seem to be a flag to check. This
would be better, imho, since we could still write the METALOG data
correctly (images created from these metalogs are imperfect due to this
relatively issue...).

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D44347

(cherry picked from commit d2a824c29d6925ba8675a811aa81f2ad7d92129d)
2024-04-16 13:54:20 -06:00
Stephen J. Kiernan
b5cd844a56 loader: add target for dirdeps build
Update dependencies for the loader variations used for each
architecture.

Reviewed by:	sjg
Differential Revision:	https://reviews.freebsd.org/D39741

(cherry picked from commit 2008043f386721d58158e37e0d7e50df8095942d)
2024-04-15 20:32:03 -06:00
Stephen J. Kiernan
ba1b5e122a dirdeps: Add missing dependency files
Some leaf directories were missing Makefile.depend files or needed
architecture-specific Makefile.depend.* files.

(cherry picked from commit e5b786625f7f82a1fa91e41823332459ea5550f9)
2024-04-15 20:32:03 -06:00
Domagoj Stolfa
aef4504139 dtrace: Add the 'oformat' libdtrace option
This option can be used to specify a format to use in DTrace output.
The following formats are supported:
 - json
 - xml
 - html
 - none (default DTrace output)

This is implemented using libxo and integrated into libdtrace. Client
code only works with the following API:

 - dtrace_oformat_setup(dtrace_hdl_t *) -- to be called when output is starting.
 - dtrace_oformat_teardown(dtrace_hdl_t *) -- to be called when output is finished
 - dtrace_oformat(dtrace_hdl_t *) -- check if oformat is enabled.
 - dtrace_set_outfp(FILE *) -- sets the output file for oformat.
 - Ensure that oformat is correctly checked in the drop handler and record
   processing callbacks.

This commit also adds tests which check if the generated output is
valid (JSON, XML) and extends the dtrace(1) describing the structured output.

Reviewed by:	markj
Discussed with:	phil
MFC after:	2 months
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D41745

(cherry picked from commit 93f27766a7e1af009c5b1e4ca538632857c91aa1)
2024-04-15 10:05:13 -04:00
Mark Johnston
9e901b7217 VOP_BMAP.9: Typo
MFC after:	1 week
Sponsored by:	Klara, Inc.

(cherry picked from commit 663a704a58455087f83b4ab51ad7a572e6f03d5f)
2024-04-15 10:05:13 -04:00
Mark Johnston
f97a19fc01 tarfs.5: Document the importance of zstd framing
Reviewed by:	des, kib
MFC after:	1 week
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D44628

(cherry picked from commit d1801babad495be2a3eb1d974e1daf9714c5b0fd)
2024-04-15 10:05:13 -04:00
Dag-Erling Smørgrav
43e0ae5629 sys/queue.h: Add {LIST,TAILQ}_REPLACE().
MFC after:	1 week
Obtained from:	NetBSD
Sponsored by:	Klara, Inc.
Reviewed by:	cperciva, imp
Differential Revision:	https://reviews.freebsd.org/D44679

(cherry picked from commit 7f479dee48973541da8c869b888b953161301c3b)

sys/queue.h: Whitespace cleanup.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D44678

(cherry picked from commit 69fd60f1ead5a86eeb0b18847dd71f7ae3fce4a0)
2024-04-15 12:54:59 +02:00
Gordon Bergling
85df63ddd2 mem.4: Correct the HISTORY section
The history section (added in CSRG) claimed both first appeared in v6.
Looking at the manuals in the TUHS archive, /dev/mem was in v1
and /dev/kmem was introduced in v5.

Reviewed by:	imp
Obtained from:	OpenBSD
Differential Revision:	https://reviews.freebsd.org/D44486

(cherry picked from commit 8a56ef8d75b42ee7228247466c8c1712de6e3b6f)
2024-04-11 14:08:16 +02:00
Baptiste Daroussin
8c093b6495 src.conf(5): regen after addition of nuageinit
(cherry picked from commit 0e2bf3002f7ea3f836fc71c135bdccd53ad78032)
2024-04-11 14:01:20 +02:00
Baptiste Daroussin
16a6da44e2 nuageinit: add basic support for cloudinit.
this is a very early script to support cloudinit, it does not intend to
be a full featured cloudinit client, but will support a good enough
subset to be viable in most case.

It support nocloud and openstack config-2 config drive mode (iso9660 or
msdosfs)

The following features are currently supported:
- adding users (including a default user named 'freebsd' with password
  'freebsd'
- adding groups
- adding ssh keys
- static ipv4, static ipv6, dynamic ipv4

With this one is able to use the 'bring your own image feature" out of
box.

It is expected that the script grows the support of other clouds
supporting cloud-init, contributions are welcomed.

It is designed to be only run once via the firstboot mecanism.

Sponsored by:	OVHCloud
Differential Revision:	https://reviews.freebsd.org/D44141

(cherry picked from commit a42d6f76018e4ed8324e319ab48aac904bda437c)
(cherry picked from commit c051f22bce42d920abba61bd7cf4ef5b6a270ffa)
(cherry picked from commit b8c053c9a612651d4909f7a323088f3e92485b7b)
(cherry picked from commit 9eae9233fdcc946945f4191e1413f548adfa2943)
2024-04-11 13:52:52 +02:00
Ed Maste
6ac10e8a72 rights.4: add note about rights not being simple bitmasks
PR:		277057
Reviewed by:	oshogbo, asomers
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44473

(cherry picked from commit 537bdafbc25d39b4bb3dce124691913f86c08288)
2024-04-07 12:34:04 -04:00
Christos Margiolis
13952fbca7 pcm.4: Showcase default device change using mixer(8)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D44556

(cherry picked from commit d46a6a77e8e14177d07e3a53f68b428e5d1cb416)
2024-04-05 12:43:24 +02:00
Konstantin Belousov
36d16f5c5b cdevpriv(9): document devfs_foreach_cdevpriv()
(cherry picked from commit 88f2c58d1a857f0ccedd49da3dc29d8d193b4fdd)
2024-03-30 10:31:13 +02:00
Ka Ho Ng
d9d05e65c1 epoch(9): Remove the under-development note
There has not been planned changes so far to the interface. Remove the
section as it may not be relevant anymore.

Sponsored by:	Juniper Networks, Inc.
Reviewed by:	glebius
Differential Revision:	https://reviews.freebsd.org/D44501

(cherry picked from commit 04b90ac0f9e883a485bad4b0edf516395596d17f)
2024-03-29 15:54:43 -04:00
Mark Johnston
b78edde280 libfdt: Make an internal FDT library available
This will be used by bhyve to build a device tree when booting arm64
guests.

Reviewed by:	corvink, jhb
MFC after:	1 week
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D40994

(cherry picked from commit f29af8618bf94f1e58877feb6dbef35bd8bbf56b)
2024-03-29 09:53:19 -04:00
Baptiste Daroussin
2464e5cfd2 usb_vendors: add new usb_vendors
usb_vendors is a local copy of usb.ids (similar to pci_vendors)
It is now used by usbconfig(1) when listing the devices.

(cherry picked from commit db1d086b7372d1d3f4e7a475d8e92642e698c25d)
2024-03-27 09:20:19 +01:00
Gordon Bergling
caf8d5c884 intr_event.9: Remove double word
- s/of of/of/

(cherry picked from commit 2c3466172ac655dbc030aac7c6d7bf58d76efc0e)
2024-03-26 06:55:38 +01:00
Gordon Bergling
13a74b477d cxgbe.4: Remove double word
- s/of of/of/

(cherry picked from commit 619e6f1f9288ffb6844a6bdf371c9549873cdab7)
2024-03-26 06:55:18 +01:00
Gordon Bergling
8dd42c55ec tcp_rack.4: Update the SEE ALSO section
Correct the surname of one of authors of RFC 8985 and add RFC 5681 and
RFC 6937 (PRR: Proportional Rate Reduction for TCP).

Reviewed by:	tuexen
Differential Revision:	https://reviews.freebsd.org/D44399

(cherry picked from commit e29be07861173f87b2dd46db1d0c7cbcf72d4ad0)
2024-03-25 15:58:22 +01:00
Ed Maste
2031b368f8 rights.4: Remove sentence implying that rights are a mask
Capability rights passed to cap_rights_* are (now) not simple bitmaks
and cannot be ORed together in general (although it will work for
certain subsets of rights).

Remove sentence that implied rights are masks.  We already have the
sentence "The complete list of capability rights is provided below" so
listing the rights without an introductory sentence seems fine.

PR:		277057
(cherry picked from commit 2c5ff9118c1ed8483a9477db3595b1d154615e2c)
2024-03-22 09:30:32 -04:00
Ed Maste
269bc49fba style.lua.9: remove mention of $FreeBSD$
Also restore a comment line in an example which previously started with
-- $FreeBSD$ but was removed in 6ef644f588.  The example shows the of
a module require statement block following the license header.

(cherry picked from commit f1bd7311fbd576a387042c0d81945b701c7459a3)
2024-03-22 09:30:31 -04:00
Christopher Davidson
144abdaa2b wlan(4) - remove an(4) reference
Fixes: 663b174b5b ("an: Remove driver")
Pull request: https://github.com/freebsd/freebsd-src/pull/1120

(cherry picked from commit bbd29c4394de2750b6137c46bf4e577805a4120a)
2024-03-22 09:30:31 -04:00