freebsd-src/sys
Alan Somers 24938f9311 lib/libc/rpc: switch the per-fd structs in clnt_{dg,vc}.c to RB Trees
This saves oodles of memory, especially when "ulimit -n" is large.  It
also prevents a buffer overflow if getrlimit should fail.

Also replace per-fd condvars with mutexes to simplify the code.

PR:		274968
MFC after:	2 weeks
Sponsored by:	Axcient
Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D42597
2023-11-15 16:12:50 -07:00
..
amd64 _bus.h: Use standard licnese text 2023-11-13 12:25:30 -07:00
arm bcm2835/spi: Support SPI_FLAG_KEEP_CS 2023-11-14 16:47:35 -05:00
arm64 arm64: Correct a comment in locore.S 2023-11-15 18:13:39 +00:00
bsm timerfd: Move implementation from linux compat to sys/kern 2023-08-24 14:28:56 -06:00
cam cam: Add human readable statuses for some CAM_ status values. 2023-11-08 15:38:16 -07:00
cddl boot/zfs: Add some fields to dsl_dir_phys_t 2023-10-23 11:12:14 -04:00
compat linuxkpi linux_work: use 'true' instead of 'non-zero' 2023-11-07 12:58:21 +02:00
conf mlx5_core: add new files to the static files list 2023-11-16 01:08:17 +02:00
contrib zfs: merge openzfs/zfs@887a3c533 2023-11-09 13:19:17 +01:00
crypto OpenSSL: regenerate asm files for 3.0.12 2023-10-25 13:29:35 -04:00
ddb ddb: Add sysctl flag CTLFLAG_TUN to loader tunable 2023-10-09 18:30:21 +08:00
dev mlx5core: add linux/bitops.h include for mlx5_ifc.h use of BIT() 2023-11-16 01:08:17 +02:00
dts sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
fs nfscl: newnfs_copycred() cannot be called when a mutex is held 2023-11-06 14:25:30 -08:00
gdb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom graid3: Fix teardown races 2023-11-02 14:35:37 -04:00
gnu sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
i386 _bus.h: Use standard licnese text 2023-11-13 12:25:30 -07:00
isa isa: Postpone removal of the non-PNP driver until 15 2023-10-29 04:31:11 +08:00
kern abort2: Generate a core dump 2023-11-13 17:00:52 -08:00
kgssapi nfscl/kgssapi: Fix Kerberized NFS mounts to pNFS servers 2023-10-23 13:21:14 -07:00
libkern sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
modules mlx5: add fs_counters 2023-11-16 01:08:17 +02:00
net if_tuntap: remove redundant check 2023-11-09 11:43:54 +01:00
net80211 net80211: add ieee80211_add_vhtcap_ch() 2023-11-03 21:08:04 +00:00
netgraph ng_ipfw: allow use of 32 bits wide cookies 2023-11-14 16:36:08 +07:00
netinet sctp: minor clean 2023-11-06 11:04:15 +01:00
netinet6 udplite: make socketoption available on IPv6 sockets 2023-11-05 15:28:54 +01:00
netipsec sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netlink netlink: fix potential llentry lock leak in newneigh handler 2023-10-23 16:24:51 +02:00
netpfil ipfw: fix copy&paste bug for number:array tables 2023-11-14 07:37:04 +03:00
netsmb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfsclient sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nfsserver sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nlm nlm: Fix error messages for failed remote rpcbind contact 2023-11-09 21:54:28 +01:00
ofed ibcore: Introduce enum ib_raw_packet_caps from Linux 4.11 2023-10-28 16:59:14 -04:00
opencrypto sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
powerpc busdma: Add deferred time measurement to arm and powerpc 2023-11-13 12:25:56 -07:00
riscv _bus.h: Use standard licnese text 2023-11-13 12:25:30 -07:00
rpc lib/libc/rpc: switch the per-fd structs in clnt_{dg,vc}.c to RB Trees 2023-11-15 16:12:50 -07:00
security Remove gratuitous copyouts of unchanged struct mac. 2023-11-13 21:32:15 +00:00
sys Add an Armv8 rndr random number provider 2023-11-15 18:05:08 +00:00
teken teken: fix style in teken_wcwidth.h 2023-10-13 08:14:57 +03:00
tests netlink: move NETLINK define to opt_global.h 2023-10-13 09:23:47 +02:00
tools pccarddevs2h.awk: Remove 2023-08-25 15:12:44 -06:00
ufs Fix build with gcc12. 2023-10-27 16:39:12 -07:00
vm vm_phys: fix freelist_contig 2023-11-15 03:25:45 -06:00
x86 busdma: On systmes that use subr_busdma_bounce, measure deferred time 2023-11-13 07:23:53 -07:00
xdr sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xen sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
Makefile sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06: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(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures