opnsense-src/sys
Mark Johnston 731c145612 e1000: Fix some issues in em_newitr()
- Load packet and byte counters exactly once, as they can be
  concurrently mutated.
- Rename bytes_packets to bytes_per_packet, which seems clearer.
- Use local variables that have the same types as the counter values,
  rather than truncating unsigned long to u32.

Reviewed by:	kbowling
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D50416
2025-05-27 17:33:39 +00:00
..
amd64 ppt: Fix panic when configuring unavailable MSI-X vector 2025-05-16 13:29:08 +02:00
arm subr_devmap: Implement pmap_mapdev with pmap_mapdev_attr 2025-05-15 16:09:46 +01:00
arm64 rk_i2s: correct some bit-field definitions, add more bits 2025-05-19 12:19:03 +03:00
bsm New setcred() system call and associated MAC hooks 2024-12-16 15:42:39 +01:00
cam scsi/da: Only send SYNC CACHE for devices with mode page 8 2025-05-07 15:36:55 -06:00
cddl dtrace/arm64: Fix dtrace_gethrtime() 2025-03-09 23:01:13 -04:00
compat LinuxKPI: 802.11: mark struct ieee80211_ht_cap __packed 2025-05-26 23:33:08 +00:00
conf mac_do(4): allow compiling into kernel 2025-05-22 17:59:32 +01:00
contrib iwlwifi: update script to extract firmware/chipset generations/flavors/.. 2025-05-13 00:04:46 +00:00
crypto openssl: update ASM and version info for 3.0.16 import 2025-03-13 23:42:02 -07:00
ddb proc: Remove kernel stack swapping support, part 6 2024-07-29 01:43:18 +00:00
dev e1000: Fix some issues in em_newitr() 2025-05-27 17:33:39 +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 namei: Fix cn_flags width in various places 2025-05-27 13:29:14 +00:00
gdb thread: Remove kernel stack swapping support, part 4 2024-07-29 01:40:22 +00:00
geom sysctl(9): Ease exporting struct sizes; Discourage doing that 2025-05-07 12:13:40 +02:00
gnu sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
i386 i386: replace tailq pointers with iterators 2025-04-20 23:05:48 -05:00
isa Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
kern namei: Fix cn_flags width in various places 2025-05-27 13:29:14 +00:00
kgssapi crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
libkern libkern: strdup.c, strndup.c: Prefer memcpy() over bcopy() 2025-02-17 23:37:59 +08:00
modules buildkernel: fix build for kernels without VIMAGE 2025-05-26 08:23:37 -07:00
net bridge: check allow_llz_overlap before member_ifaddrs 2025-05-23 19:08:14 +01:00
net80211 net80211: remove direct references to ifp->if_xname 2025-05-25 08:24:10 -07:00
netgraph ng_sample: fix style nits 2025-05-16 21:29:47 +01:00
netinet netinet: Disallow connections to INADDR_ANY 2025-05-24 14:13:09 -04:00
netinet6 icmp6: fix use-after-reference-release 2025-05-27 11:47:43 +02:00
netipsec pfkey2: use correct value for a key length 2025-03-06 15:18:59 +03:00
netlink jail: add allow.routing jail permission 2025-05-12 23:13:18 +01:00
netpfil pf: use __func__ rather than hardcoded function names 2025-05-09 22:49:29 +02:00
netsmb sockets: garbage collect SB_NOINTR 2025-02-02 22:38:18 -08:00
nfs sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
nfsclient sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
nfsserver sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
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 crypto: Remove uses of CRYPTO_F_DONE 2025-05-09 00:29:23 +00:00
powerpc powerpc: Enable VIMAGE on more kernel configs 2025-05-20 12:09:29 +08:00
riscv subr_devmap: Reduce the use of the static devmap 2025-05-02 16:39:04 +01:00
rpc krpc/clnt_nl: unregister the netlink group, when client is destroyed 2025-02-05 10:09:06 -08:00
security MAC/do: Fix a too stringent debug assertion for a target of 'uid=*' 2025-05-27 11:20:07 +02:00
sys namei: Make stackable filesystems check harder for jail roots 2025-05-23 13:03:38 +00:00
teken Typo: brig(h)tness 2024-09-11 08:35:46 +00:00
tests netlink: refactor KPI for generic Netlink modules 2025-02-05 10:09:06 -08:00
tools vnode_if: Remove some branching around SDT probes in VOP wrappers 2025-05-22 14:37:49 +00:00
ufs ufs_aclcheck(): accurately dereference vp->v_mount 2025-03-22 01:40:00 +02:00
vm vm_object: drop reverse walk from collect_flush 2025-05-25 22:02:37 -05:00
x86 tls: Introduce struct dtv and struct dtv_slot 2025-05-07 20:20:26 +01:00
xdr xdr: provide x_putmbuf method for xdrmem 2025-02-01 01:00:25 -08:00
xen x86/xen: Use intended values in HVM_CALLBACK_VECTOR 2024-11-06 15:46:05 +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