HardenedBSD/sys
Doug Moore b3cec803ea vm_fault: avoid vm_page_next()
Where vm_fault calls vm_page_next, replace it with a use of TAILQ_NEXT
and a KASSERT.  This avoids needless computation in a NODEBUG kernel
and makes the error checking clearer in a GENERIC kernel.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D46168
2024-07-27 16:11:53 -05:00
..
amd64 Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00
arm newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
arm64 Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00
bsm
cam Revert "cam: better ioctl compatibility for cd" 2024-07-24 23:09:57 -06:00
cddl dtrace: Avoid including dtrace_isa.c directly into dtrace.c 2024-07-24 17:24:46 -04:00
compat LinuxKPI: move __kmalloc from slab.h to slab.c 2024-07-26 11:51:04 +00:00
conf smbios: Compile into the kernel more completely 2024-07-24 23:09:57 -06:00
contrib
crypto newbus: replace -1 in BUS_ADD_CHILD(...-1) with DEVICE_UNIT_ANY 2024-07-24 22:23:02 -06:00
ddb db_pprint: Properly handle complex pointer types 2024-07-21 19:31:59 +02:00
dev sound: Simplify feeder_remove() 2024-07-27 14:55:57 +03:00
dts
fs nullfs: Use an a_gen field to cast to vop_generic_args 2024-07-26 11:14:32 +00:00
gdb
geom
gnu
i386 Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00
isa newbus: replace -1 in BUS_ADD_CHILD(...-1) with DEVICE_UNIT_ANY 2024-07-24 22:23:02 -06:00
kern kern_malloc: fold free and zfree together into one __always_inline func 2024-07-26 10:46:37 +00:00
kgssapi
libkern
modules sound: Implement dummy driver 2024-07-27 14:54:45 +03:00
net netisr: avoid ffs(0) 2024-07-26 11:51:17 -05:00
net80211 net80211: scan/internal: change boolean argument from int to bool 2024-07-26 11:07:39 +00:00
netgraph
netinet cc_cubic: remove the redundant variable num_cong_events from struct cubic. 2024-07-25 13:11:32 -04:00
netinet6 nd6: Fix the routing table subscription 2024-07-25 10:27:39 -04:00
netipsec ipsec_offload: hide SA/SP offload lifecycle prints under verbose sysctl 2024-07-21 11:53:19 +03:00
netlink netinet: correct SIOCDIFADDR{,_IN6} calls to use {,in6_}ifreq 2024-07-22 14:17:21 +00:00
netpfil pf: convert DIOCGETADDR to netlink 2024-07-22 09:11:49 +02:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed LinuxKPI: Remove owner argument from class_create function on KBI layer 2024-07-21 16:09:58 +03:00
opencrypto
powerpc Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00
riscv Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00
rpc
security
sys sound: Add OSS channel capabilities to sndstat nvlist 2024-07-27 14:54:27 +03:00
teken
tests
tools
ufs Do not allow snapshots on UFS filesystems using gjournal. 2024-07-24 23:10:47 -07:00
vm vm_fault: avoid vm_page_next() 2024-07-27 16:11:53 -05:00
x86 Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00
xdr
xen newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00
Makefile sys: Index netlink/ files with the cscope target 2024-07-22 09:50:43 +00:00
README.md

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