aboutsummaryrefslogtreecommitdiff
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
...
* ieee80211_vap(9): fix the titleMitchell Horne2024-04-231-1/+1
| | | | MFC after: 3 days
* Update manual page references and macros to align to mandoc syntaxChristopher Davidson2024-04-232-3/+1
| | | | | | | | | | | | | | | | xlocale.3: Comment out reference to atof_l(3), atoi_l(3), atol_l(3), atoll_l(3) These manual page references do not exist. lagg.4: Change the reference for /etc/rc.conf from a reference link .Xr -> .Pa based on the context within the manual page it is used. buf.9: Remove .Xr entries from the file The buf.9 manual page contains a commented out .Xr reference. The <filmmein> 9 entry is a placeholder and has been removed for clarity. Reviewed by: mhorne Pull Request: https://github.com/freebsd/freebsd-src/pull/1114
* src.conf: regen after 91d35fb663e0, WITHOUT_CAPSICUM removalEd Maste2024-04-231-3/+1
| | | | Sponsored by: The FreeBSD Foundation
* Remove WITHOUT_CAPSICUM build supportEd Maste2024-04-231-5/+0
| | | | | | | | | | | | Capsicum is non-optional as of c24c117b9644 ("Remove WITHOUT_{CAPSICUM,CASPER} options"). `#ifndef WITHOUT_CAPSICUM` is left in the source for the benefit of downstream consumers, but is never defined in FreeBSD. Reviewed by: oshogbo Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42077
* alc(4): disable MSI-X by default on Killer cardsLexi Winter2024-04-231-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Several users with alc(4)-based "Killer" Ethernet cards have reported issues with this driver not passing traffic, which are solved by disabling MSI-X using the provided tunable. To work around this issue, disable MSI-X by default on this card. This is done by having msix_disable default to 2, which means "auto-detect". The user can still override this to either 0 or 1 as desired. Since these are slow (1Gbps) Ethernet ICs used in low-end systems, it's unlikely this will cause any practical performance issues; on the other hand, the card not working by default likely causes issues for many new FreeBSD users who find their network port doesn't work and have no idea why. PR: 230807 MFC after: 1 week Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1185
* share/examples: move examples into appropriate packagesLexi Winter2024-04-231-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | Allow a new variable SE_xxxPACKAGE to be used to place an example group into a package. Move the following examples into existing appropriate packages: - bhyve examples into FreeBSD-bhyve - bootforth examples into FreeBSD-bootloader - csh examples into FreeBSD-csh - ipfw examples into FreeBSD-ipfw - jail examples into FreeBSD-jail - pf examples into FreeBSD-pf - ppp examples into FreeBSD-ppp - printing examples into FreeBSD-lp - uefisign examples into FreeBSD-efi-tools - ypldap examples into FreeBSD-yp - hast examples into FreeBSD-hast Move all other examples into the new 'FreeBSD-examples' package. This removes a significant number of files from the FreeBSD-utilities package. Reviewed by: imp, manu Pull Request: https://github.com/freebsd/freebsd-src/pull/1176
* src.conf.5: rebuild after WITH_NVME changesBrooks Davis2024-04-221-9/+1
| | | | | | | WITH_NVME is no longer marked broken on armv7, riscv64, or powerpc. Fixes: 2fda3ab0ac19 WITH_NVME: Remove from broken. Differential Revision: https://reviews.freebsd.org/D44850
* bsd.subdir.mk: improve `SUBDIR.${MK_FOO}` adviceEnji Cooper2024-04-211-2/+2
| | | | | | | - Remove superfluous whitespace by removing trailing whitespace before `\` (line continuation character) - Quote `SUBDIR.` to clarify the fact that this is a variable reference--not the end of a sentence.
* wg: Add netmap supportMark Johnston2024-04-201-0/+14
| | | | | | | | | | | | | | | | | | | | | | | 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
* Add support for i2c-tiny-usb: usb to iic bridgeDenis Bodor2024-04-192-0/+86
| | | | | Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1123
* Update sys.dirdeps.mk set default DEP_*Simon J. Gerraty2024-04-181-8/+7
| | | | | | | | Even at level 0 it is handy to default DEP_* used by Makefile.depend* to aid the first include if in a leaf dir. Reviewed by: stevek
* organization.dot: Fix typosMateusz Piotrowski2024-04-181-2/+2
| | | | MFC after: 3 days
* share/mk/bsd.cpu.mk: add F16C feature for i386 and amd64 architecturesDimitry Andric2024-04-181-18/+24
| | | | | | | | | | | | | | | 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
* intro(7): add link to new networking(7)Mitchell Horne2024-04-181-1/+3
| | | | | | It improves the discoverability of the page. Sponsored by: The FreeBSD Foundation
* hier.7: polish entry to system manualAlexander Ziaee2024-04-181-84/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* networking.7 : create network quickstart guideAlexander Ziaee2024-04-172-0/+106
| | | | | | | | | | | | | | | | 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
* WITH_NVME: Remove from broken.Warner Losh2024-04-171-6/+0
| | | | | | | | NVME works everywhere, so we can eliminate this. We may remove the option altogether. Sponsored by: Netflix Discussed with: ken, jhb
* src.libnames.mk: fix LIBPFCTL definitionLexi Winter2024-04-151-1/+1
| | | | | | | | | | | Following the convention used in the rest of this file, ${LIBPFCTLDIR} should refer to the directory, and ${LIBPFCTL} to the library itself. Instead, both values were assigned to ${LIBPFCTL}, and ${LIBPFCTLDIR} was not set at all. This appears to be a simple typo and not a deliberate choice, so fix it by assigning the directory name to ${LIBPFCTLDIR} instead.
* style.mdoc.5: maintenenceAlexander Ziaee2024-04-121-13/+12
| | | | | | | | | | | - description: increase visibility by s/file/manual page/ - examples: s/No Doing Something/Doing Something/ - examples: remove depreciated .Li macro - examples: remove extra newline (one display block) - see also: link roff language reference for mandoc Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1130
* intro.1: 2024 editionAlexander Ziaee2024-04-121-6/+34
| | | | | | | | | | | Modernize intro.1, attempting to preserve style and brevity, including a paragraph about installing more commands, a FILES section explaining where the commands are located and why, and adding section number to HISTORY for clarity. Advances: #248562 Reviewed by: imp, mhrone Pull Request: https://github.com/freebsd/freebsd-src/pull/1136
* sound: Implement asynchronous device detachChristos Margiolis2024-04-111-10/+1
| | | | | | | | | | | | | | | | | | | | | | | 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
* sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)Christos Margiolis2024-04-111-41/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* src.conf.5: RegenerateMark Johnston2024-04-101-1/+1
|
* sys: Enable NVMe drivers on all architecturesJohn Baldwin2024-04-091-9/+2
| | | | | | | | | The NVMe drivers are portable and are already included statically in GENERIC on other architectures such as aarch64 and riscv64. Reviewed by: imp Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D44690
* periodic/daily/801.trim-zfs: Add a daily zfs trim scriptLexi Winter2024-04-091-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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
* config.mk: Add MK_VIMAGE knobStephen J. Kiernan2024-04-091-0/+2
| | | | | | | | | | Default to VIMAGE as yes. Add VIMAGE to __DEFAULT_DEPENDENT_OPTIONS (to define VIMAGE_SUPPORT) Only output VIMAGE to opt_global.h when VIMAGE support is wanted. Obtained from: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39636
* sys/queue.h: Add {LIST,TAILQ}_REPLACE().Dag-Erling Smørgrav2024-04-082-2/+34
| | | | | | | | MFC after: 1 week Obtained from: NetBSD Sponsored by: Klara, Inc. Reviewed by: cperciva, imp Differential Revision: https://reviews.freebsd.org/D44679
* ng_bridge: document the limitation brought in f961caf2184cGleb Smirnoff2024-04-081-0/+11
|
* ng_bridge: allow to automatically assign numbers to new hooksDavid Marker2024-04-081-1/+12
| | | | | | | | | | This will allow a userland machinery that orchestrates a bridge (e.g. a jail or vm manager) to not double the number allocation logic. See bug 278130 for longer description and examples. Reviewed by: glebius, afedorov Differential Revision: https://reviews.freebsd.org/D44615 PR: 278130
* tarfs.5: Provide some guidance on zstd frame sizesMark Johnston2024-04-051-0/+9
| | | | | | | Reviewed by: des, emaste MFC after: 2 weeks Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44636
* VOP_BMAP.9: TypoMark Johnston2024-04-051-1/+1
| | | | | MFC after: 1 week Sponsored by: Klara, Inc.
* Add OpenBSD 7.5 to bsd-family-treeJuraj Lutter2024-04-051-0/+3
| | | | | | | | Summary: Add OpenBSD 7.5 to bsd-family-tree Subscribers: imp Differential Revision: https://reviews.freebsd.org/D44643
* Revert "sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)"Christos Margiolis2024-04-051-12/+41
| | | | | | | This reverts commit dc831e93bad63f9faea09f1806a7733a40bff316. After several reports in the mailing lists, this commit breaks pulseaudio. Revert until the issue is resolved.
* Revert "sound: Implement asynchronous device detach"Christos Margiolis2024-04-051-1/+10
| | | | | | | | This reverts commit 9eff58c6d52b66eb8abe7f724dabcd804a566df4. We are reverting dc831e93bad6 ("sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)"), so revert this commit as well since it depends dc831e93bad6.
* tarfs.5: Document the importance of zstd framingMark Johnston2024-04-041-0/+13
| | | | | | | Reviewed by: des, kib MFC after: 1 week Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D44628
* bhnd_erom.9: remove self-referenceChristopher Davidson2024-04-031-1/+1
| | | | | | | | 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
* device_add_child.9: remove self-referenceChristopher Davidson2024-04-031-2/+2
| | | | | | | | 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
* cfumass.4: remove self-referenceChristopher Davidson2024-04-031-1/+1
| | | | | | | | 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
* SYSCTL_ADD_CONST_STRING(9): HISTORYDavid E. O'Brien2024-04-031-0/+3
| | | | Add information of where one may use this API.
* Add SYSCTL_ADD_CONST_STRING(9)David E. O'Brien2024-04-031-0/+1
| | | | | | | | Catch up with 10a1e981d (2019-03-19) so that one can do 'man SYSCTL_ADD_CONST_STRING' and not get "No manual entry for SYSCTL_ADD_CONST_STRING". Reviewed by: sjg
* bsd-family-tree: remove EoL whitespaceMaxim Konovalov2024-03-311-1/+1
|
* bsd-family-tree: add NetBSD 10.0Maxim Konovalov2024-03-311-0/+3
|
* sound: Implement asynchronous device detachChristos Margiolis2024-03-311-10/+1
| | | | | | | | | | | | | | | | | | | | | | | 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, 278055, 202275, 220949, 272286 Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D43545
* sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)Christos Margiolis2024-03-311-41/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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, markj Differential Revision: https://reviews.freebsd.org/D44411
* pcm.4: Showcase default device change using mixer(8)Christos Margiolis2024-03-291-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D44556
* sys.mk: Define HOST_CC as CC by default.Stephen J. Kiernan2024-03-271-0/+2
| | | | | | | | | This allows for setting a different compiler for building hostprogs when cross compiling. Obtained from: Juniper Networks, Inc. Reviewed by: sjg Differential Revision: https://reviews.freebsd.org/D44536
* diff: Integrate libdiff from OpenBSD GoT.Dag-Erling Smørgrav2024-03-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | This adds support for two new diff algorithms, Myers diff and Patience diff. These algorithms perform a different form of search compared to the classic Stone algorithm and support escapes when worst case scenarios are encountered. Add the -A flag to allow selection of the algorithm, but default to using the new Myers diff implementation. The libdiff implementation currently only supports a subset of input and output options supported by diff. When these options are used, but the algorithm is not selected, automatically fallback to the classic Stone algorithm until support for these modes can be added. Based on work originally done by thj@ with contributions from kevans@. Sponsored by: Klara, Inc. Reviewed by: thj Differential Revision: https://reviews.freebsd.org/D44302
* epoch(9): Remove the under-development noteKa Ho Ng2024-03-261-5/+1
| | | | | | | | | 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
* mem.4: Correct the HISTORY sectionGordon Bergling2024-03-241-5/+7
| | | | | | | | | | | 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 MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D44486
* cxgbe.4: Remove double wordGordon Bergling2024-03-231-1/+1
| | | | | | - s/of of/of/ MFC after: 3 days