opnsense-src/sys
Justin Hibbits 564df56098 nexus: Add device_shutdown where missing
At shutdown devices may need to do extra work to clean up state, etc.
This is done in a device_shutdown kobj method on a driver, with the
default being a `do nothing` method.  Only x86's nexus driver includes
the device_shutdown method to propagate down to its children, so on
other architectures the device_shutdown stops at the root, and thus
device_shutdown is never called for any real devices.  Add this missing
method to the nexus drivers of the other architectures so devices have a
chance to properly shutdown.

Sponsored by:	Juniper Networks, Inc.
2025-06-25 15:53:24 -04:00
..
amd64 amd64/conf: Remove a config committed by accident 2025-06-25 12:50:50 +00:00
arm nexus: Add device_shutdown where missing 2025-06-25 15:53:24 -04:00
arm64 nexus: Add device_shutdown where missing 2025-06-25 15:53:24 -04:00
bsm New setcred() system call and associated MAC hooks 2024-12-16 15:42:39 +01:00
cam pass: Update comments about scsi and devstat 2025-06-19 09:52:25 -06:00
cddl machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
compat linuxkpi: Remove incorrect + 1 from HWEIGHT* macros 2025-06-24 18:42:16 -04:00
conf arm64: Create an L3 table to limit permissions 2025-06-17 13:48:22 +01:00
contrib zfs: merge openzfs/zfs@8170eb6eb 2025-06-22 01:00:36 +02: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 IfAPI: Finish etherswitch driver conversions 2025-06-25 15:53:13 -04:00
dts dts: fix RT-AC58U to match the updated device tree name/alias changes. 2025-04-07 20:45:40 -07:00
fs file: Add a fd flag with O_RESOLVE_BENEATH semantics 2025-06-24 21:04:18 +00:00
gdb thread: Remove kernel stack swapping support, part 4 2024-07-29 01:40:22 +00:00
geom machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
gnu bwn(4): BWN_GPL_PHY: make compile again 2025-06-22 00:19:42 +00:00
i386 sys: Add AT_HWCAP3 and AT_HWCAP4 2025-06-24 17:26:40 +01:00
isa newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
kern counter(9): rate limit periods may be more than 1 second 2025-06-25 19:56:22 +02: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 zfs: merge openzfs/zfs@8170eb6eb 2025-06-22 01:00:36 +02:00
net pf: add a generic packet rate matching filter 2025-06-25 19:56:23 +02:00
net80211 net80211: in ieee80211_sta_join() only do_ht if HT is avail 2025-06-19 01:23:12 +00:00
netgraph Internal scheduling priorities: Always use symbolic ones 2025-06-17 22:08:02 -04:00
netinet counter(9): rate limit periods may be more than 1 second 2025-06-25 19:56:22 +02:00
netinet6 counter(9): rate limit periods may be more than 1 second 2025-06-25 19:56:22 +02:00
netipsec machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
netlink machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
netpfil pf: add a generic packet rate matching filter 2025-06-25 19:56:23 +02:00
netsmb sockets: garbage collect SB_NOINTR 2025-02-02 22:38:18 -08: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 nexus: Add device_shutdown where missing 2025-06-25 15:53:24 -04:00
riscv nexus: Add device_shutdown where missing 2025-06-25 15:53:24 -04:00
rpc rpctls_impl.c: Fix handling of socket for daemon failure 2025-06-21 16:49:13 -07:00
security audit: move the wait from the queue length from the commit to alloc 2025-06-18 20:57:49 +03:00
sys counter(9): rate limit periods may be more than 1 second 2025-06-25 19:56:22 +02: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 vnode_if: Remove some branching around SDT probes in VOP wrappers 2025-05-22 14:37:49 +00:00
ufs Internal scheduling priorities: Always use symbolic ones 2025-06-17 22:08:02 -04:00
vm vm_page: update comments and KASSERT()s concerning page allocation 2025-06-25 14:09:49 -05:00
x86 sys: provide the kernel's pa when dumping on amd64 2025-06-22 06:49:32 +03: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