opnsense-src/sys
Bjoern A. Zeeb 0f8a8416a4 dwmmc: cleanup cmd and locking, consistency between mmc and mmccam
In general sprinkle locking assertions and harmonized KASSERTs
throughout the upper part of the driver to document expectations.

In dwmmc_cmd_done() "cmd" should be set correctly and be used for
both MMCCAM and classic mmc rather than special-casing mmccam.
In dwmmc_next_operation() place variable declarations on the top
for both cases before the first debug and lock assertion calls;
then factor out common parts at the end and put both cases in the
same order.
By calling dwmmc_next_operation() directly from both dwmmc_request()
in the mmc case, and dwmmc_cam_request() in the mmccase (rather than)
chaining calls in the latter, we avoid unlocking the sc in the mmccam
case and have a consistent call path from both; also removing the
mmccam #ifdef from dwmmc_request() brings more clarity.
In dwmmc_next_operation() enhance the panic/error messages with
some extra information and assert that we come in with a cam pinfo
on CAM_ACTIVE_INDEX.

MFC after:      3 days
Reviewed by:	manu
Differential Revision: https://reviews.freebsd.org/D51628
2025-07-31 17:37:54 +00:00
..
amd64 amd64: Remove a stray syzkaller config 2025-07-28 15:44:54 +00:00
arm aw_mmc: changes for Allwinner D1 2025-07-22 12:03:48 -03:00
arm64 vmm: Add support for guest NUMA emulation 2025-07-27 18:31:48 +02:00
bsm vfs: Initial revision of inotify 2025-07-04 14:42:33 +00:00
cam cam: Enforce real priorities in xpt_action for queued ccbs. 2025-07-21 22:00:53 -06:00
cddl sdt: Initialize probes in two passes 2025-07-28 20:32:39 +00:00
compat LinuxKPI: pci: use unsigned int for vendor/device arguments 2025-07-31 17:37:54 +00:00
conf ice: Fix aarch64 LINT kernel 2025-07-28 16:55:39 +02:00
contrib iwlwifi: compile in ACPI support 2025-07-04 05:22:22 +00:00
crypto newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
ddb machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
dev dwmmc: cleanup cmd and locking, consistency between mmc and mmccam 2025-07-31 17:37:54 +00:00
dts dts: fix RT-AC58U to match the updated device tree name/alias changes. 2025-04-07 20:45:40 -07:00
fs kern: start tracking cr_gid outside of cr_groups[] 2025-07-30 23:44:11 -05:00
gdb thread: Remove kernel stack swapping support, part 4 2024-07-29 01:40:22 +00:00
geom sys/geom: use proper style for sizeof operator 2025-07-26 18:13:20 +03:00
gnu bwn(4): BWN_GPL_PHY: make compile again 2025-06-22 00:19:42 +00:00
i386 i386: Avoid calling kmem_alloc_contig(M_NEVERFREED) 2025-07-15 12:52:14 +00:00
isa newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
kern aio: Fix a race in sys_aio_cancel() 2025-07-31 16:51:49 +00:00
kgssapi crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
libkern machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
modules amdsmu: Initial work on a driver for the AMD SMU 2025-07-26 21:17:06 +02:00
net bridge: do not allow a bridge SVI in a bridge 2025-07-28 18:38:02 +01:00
net80211 net80211: don't dereference a NULL HTINFO IE if it's presented 2025-07-16 08:12:11 -07:00
netgraph Internal scheduling priorities: Always use symbolic ones 2025-06-17 22:08:02 -04:00
netinet tcp hpts: cleanup header file 2025-07-31 15:13:53 +02:00
netinet6 netinet6: Don't return non-IPv6 enabled interfaces from in6_getlinkifnet() 2025-07-29 15:13:10 +02:00
netipsec ipsec offload: ipsec_accel_fill_xh() should indirect through fn pointer 2025-07-17 13:57:35 +03:00
netlink netlink: Fully clear parser state between messages 2025-07-31 12:06:47 +02:00
netpfil pf: remove incorrect __unused annotation 2025-07-29 15:13:10 +02:00
netsmb kern: adopt the cr_gid macro for cr_groups[0] more widely 2025-07-24 09:59:08 -05:00
nfs
nfsclient
nfsserver
nlm nlm: set vnet(9) context in the NLM syscall 2025-02-01 01:00:26 -08:00
ofed ofed: jiffies is unsigned long 2025-04-29 13:53:40 +00:00
opencrypto newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
powerpc powerpc: Fix multiple issues with FP/VSX save/restore 2025-07-13 14:00:56 -04:00
riscv vmm: Add support for guest NUMA emulation 2025-07-27 18:31:48 +02:00
rpc kern: start tracking cr_gid outside of cr_groups[] 2025-07-30 23:44:11 -05:00
security kern: adopt the cr_gid macro for cr_groups[0] more widely 2025-07-24 09:59:08 -05:00
sys param.h: bump __FreeBSD_version for be1f7435ef 2025-07-30 23:55:50 -05:00
teken Typo: brig(h)tness 2024-09-11 08:35:46 +00:00
tests epoch_test: Assign different priorities using offset 1 2025-06-17 22:09:36 -04:00
tools vfs: Initial revision of inotify 2025-07-04 14:42:33 +00:00
ufs kern: start tracking cr_gid outside of cr_groups[] 2025-07-30 23:44:11 -05:00
vm swapongeom: destroy consumer/close vnode in case swaponsomething failed 2025-07-31 00:27:12 +03:00
x86 linux: Add inotify support 2025-07-04 14:42:34 +00:00
xdr xdr: provide x_putmbuf method for xdrmem 2025-02-01 01:00:25 -08:00
xen machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
Makefile sys: Index netlink/ files with the cscope target 2024-07-22 09:50:43 +00:00
README.md man filesystems: fix more xrefs after move to s4 2024-06-27 18:32:05 -06:00

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(4)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures