opnsense-src/sys
Mark Johnston fa8db724ae random: Treat writes to /dev/random as separate from /entropy
RANDOM_CACHED is overloaded to refer both to entropy obtained from files
loaded by the boot loader, and entropy obtained via writes to
/dev/random.  Introduce a new source, RANDOM_RANDOMDEV, to refer to the
latter.  This is to enable treating RANDOM_CACHED as a special case in
the NIST health test implementation.

Update the default harvest_mask in rc.conf to include RANDOM_RANDOMDEV,
preserving the old behaviour of accepting writes to /dev/random.

Bump __FreeBSD_version for modules which register a pure source, since
all of their values have now shifted.

Reviewed by:	cem
MFC after:	3 months
Sponsored by:	Stormshield
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D51155
2025-07-18 20:33:06 +00:00
..
amd64 pmap_enter_{l2,pde}: correct the handling of an error case 2025-07-17 17:10:29 -05:00
arm pmap: Degrade pmap_page_set_attr*() into a no-op on same attribute 2025-07-13 16:13:25 +09:00
arm64 pmap_enter_{l2,pde}: correct the handling of an error case 2025-07-17 17:10:29 -05:00
bsm vfs: Initial revision of inotify 2025-07-04 14:42:33 +00:00
cam cam/xpt: style(9) no longer recommends blank lines 2025-07-10 17:03:41 -06:00
cddl libsa/zfs: prefer a vdev with newer txg to a stale one 2025-07-16 11:15:54 -07:00
compat LinuxKPI: Have kvzalloc() rely on kvmalloc(), not kmalloc() 2025-07-13 15:46:49 +09:00
conf ice: Add host SR-IOV support 2025-07-18 13:16:16 -06: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 random: Treat writes to /dev/random as separate from /entropy 2025-07-18 20:33:06 +00:00
dts
fs nfs_nfsdserv.c: Fix nfsrvd_openattr() for vnode locking 2025-07-18 11:47:59 -07:00
gdb
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 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 inotify: Fix a couple of locking bugs 2025-07-18 14:25:28 +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 ice: Add host SR-IOV support 2025-07-18 13:16:16 -06:00
net ethernet: Move the assertion of ether header sizes back into ethernet.h 2025-07-15 23:31:19 +08: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 sysctl net.inet.tcp.ktcplist: properly fill driver status length field 2025-07-10 17:42:27 +03:00
netinet6 netinet6: allow binding a raw socket to an anycast address 2025-07-15 06:12:45 +01:00
netipsec ipsec offload: ipsec_accel_fill_xh() should indirect through fn pointer 2025-07-17 13:57:35 +03:00
netlink nlmsg_report_err_msg: add __printflike annotation 2025-07-15 06:12:45 +01:00
netpfil pf: Use goto fail consistently to leave the giant switch in pfioctl(). 2025-07-18 09:33:30 +02:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
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 pmap: Degrade pmap_page_set_attr*() into a no-op on same attribute 2025-07-13 16:13:25 +09:00
rpc rpctls_impl.c: Fix handling of hung rpc tls daemon 2025-07-18 11:27:50 -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 random: Treat writes to /dev/random as separate from /entropy 2025-07-18 20:33:06 +00:00
teken
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 pathconf: Add a new variable for hidden/system 2025-07-05 16:33:16 -07:00
vm swap_pager: Convert swap-space-full flags to bools 2025-07-15 15:16:57 +00:00
x86 linux: Add inotify support 2025-07-04 14:42:34 +00:00
xdr
xen machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
Makefile
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