freebsd-dev/sys
Alexander V. Chernikov 19e43c163c netlink: add netlink KPI to the kernel by default
This change does the following:

Base Netlink KPIs (ability to register the family, parse and/or
 write a Netlink message) are always present in the kernel. Specifically,
* Implementation of genetlink family/group registration/removal,
  some base accessors (netlink_generic_kpi.c, 260 LoC) are compiled in
  unconditionally.
* Basic TLV parser functions (netlink_message_parser.c, 507 LoC) are
  compiled in unconditionally.
* Glue functions (netlink<>rtsock), malloc/core sysctl definitions
 (netlink_glue.c, 259 LoC) are compiled in unconditionally.
* The rest of the KPI _functions_ are defined in the netlink_glue.c,
 but their implementation calls a pointer to either the stub function
 or the actual function, depending on whether the module is loaded or not.

This approach allows to have only 1k LoC out of ~3.7k LoC (current
 sys/netlink implementation) in the kernel, which will not grow further.
It also allows for the generic netlink kernel customers to load
 successfully without requiring Netlink module and operate correctly
 once Netlink module is loaded.

Reviewed by:	imp
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D39269
2023-03-27 13:55:44 +00:00
..
amd64 bhyve: Remove vmctx member from struct vm_snapshot_meta. 2023-03-24 11:49:06 -07:00
arm pmap_mapdev_attr() doesn't use any of its arguments. 2023-03-20 23:09:34 -07:00
arm64 arm64: Remove duplicated function prototypes for PAC 2023-03-27 08:56:22 -04:00
bsm
cam nvme: fix resv commands with nda device 2023-03-27 14:53:24 +02:00
cddl dtrace/powerpc: Remove accidental commented out line 2023-03-13 11:37:40 -04:00
compat linsysfs(4): Keep Linux compatible sysfs the same as Ubuntu 2023-03-25 13:41:04 +03:00
conf netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
contrib rtw89: fix -Wunused-but-set-variable 2023-03-23 00:29:38 +00:00
crypto OpenSSL: Regen an assembly file for arm 2023-03-21 15:13:51 -04:00
ddb ddb: ansify 2023-02-08 00:09:23 +00:00
dev pci: add tunable hw.pci.enable_mps_tune 2023-03-27 11:28:27 +02:00
dts arm64/rockchip: Remove rk3328-dwc3 overlays 2022-11-16 11:58:32 +01:00
fs fdesc_lookup(): drop fdropped 2023-03-24 19:47:22 +02:00
gdb
geom gvinum: correct assertions 2023-03-21 10:03:12 -04:00
gnu
i386 i386: ansify 2023-03-25 23:21:03 +03:00
isa
kern netlink: allow netlink sockets in non-vnet jails. 2023-03-26 08:44:09 +00:00
kgssapi nfsd: Enable the NFSD_VNET vnet front end macros 2023-02-18 14:59:36 -08:00
libkern ashldi3: Use C89-style function definition 2022-11-27 13:23:25 -07:00
modules netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
net netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
net80211 net80211: make ieee80211_scan_dump_channels private 2023-03-14 22:17:03 +00:00
netgraph ng_atmllc: remove 2023-03-09 18:04:21 +00:00
netinet netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
netinet6 inet6: Include if_private.h in one more netstack file 2023-03-24 10:25:35 -04:00
netipsec ipsec: only update lastused when it changes 2023-02-16 07:33:51 +00:00
netlink netlink: add netlink KPI to the kernel by default 2023-03-27 13:55:44 +00:00
netpfil pf: ignore ip6_output() return value in pf_refragment6() 2023-03-24 08:08:19 +01:00
netsmb
nfs Allow any user to read the NFS stats, for example with nfsstat(1). 2022-12-01 22:21:14 -07:00
nfsclient
nfsserver
nlm nlm: only access refcounts using dedicated primitives 2022-11-24 19:46:43 +00:00
ofed ofed: Mechanically convert to IfAPI 2023-03-24 10:04:33 -04:00
opencrypto Complete removal of opt_compat.h 2023-02-13 19:07:38 +03:00
powerpc powerpc/pmap: Account for a potential NULL pmap in pmap_sync_icache 2023-03-21 09:56:26 -04:00
riscv riscv: Fix sig_atomic_t limit definitions 2023-03-22 16:23:22 +00:00
rpc svc_rpcsec_gss.c: Separate out the non-vnet initialization 2023-03-01 15:29:25 -08:00
security vfs: retire KERN_VNODE 2023-03-17 16:21:45 +00:00
sys Bump __FreeBSD_version for changing spsr on arm64 2023-03-23 18:56:26 +00:00
teken
tests
tools Improve debuggability of VOP_* locking assertions 2023-01-18 22:11:05 -06:00
ufs Improve chance of finding an alternate superblock in sbsearch(3). 2023-03-23 13:04:52 -07:00
vm vnode_pager_input: return runningbufspace back 2023-03-26 00:55:29 +02:00
x86 pci: expose intel_graphics_stolen as sysctl 2023-03-27 11:40:49 +02:00
xdr xdr: ansify 2023-02-13 18:37:31 +00:00
xen xen: bump used interface version 2023-03-09 17:13:17 +01:00
Makefile Remove dead code in the cscope target 2022-11-11 15:53:57 +00:00
README.md note that some arch independent code can live in dev (e.g. SMBios) 2023-03-03 01:54:07 -08: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.

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