freebsd-src/sys
John Baldwin 9b57e30cf5 abort2: Generate a core dump
Call sigexit rather than exit1 so that a core is generated.

If running the SIGABRT handler is desired, this would need to use
kern_psignal() instead.  In that case a userspace wrapper in libc
would be needed to force an exit if the handler doesn't exit.  Given
that abort2(2)'s intended use case is when userland is in a
sufficiently bad state such that it can't safely call syslog(3) before
abort(3), a userspace abort2(3) wrapper in libc might be dubious.

Reviewed by:	Olivier Certner <olce.freebsd@certner.fr>, emaste
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D42163
2023-11-13 17:00:52 -08:00
..
amd64 _bus.h: Use standard licnese text 2023-11-13 12:25:30 -07:00
arm busdma: Add deferred time measurement to arm and powerpc 2023-11-13 12:25:56 -07:00
arm64 _bus.h: Use standard licnese text 2023-11-13 12:25:30 -07: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 sys/conf: Move adding kernel.bin earlier 2023-11-10 09:57:44 +00: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 ipmi_ssif: Fix typo in debug print 2023-11-13 19:46:56 -05: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 zfs: merge openzfs/zfs@887a3c533 2023-11-09 13:19:17 +01: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 netgraph: Fix obsolete comment 2023-10-27 14:00:37 -06: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 pf_purge_expired_states(): fix build without SDT probes 2023-11-09 22:17:53 +02: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
nfsserver
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 krpc: Display stats of TLS usage 2023-11-02 14:07:01 -07:00
security Remove gratuitous copyouts of unchanged struct mac. 2023-11-13 21:32:15 +00:00
sys sysent: Add sv_protect 2023-11-10 09:57:45 +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 Fix build on powerpc after previous commit. 2023-11-09 21:21:47 -05: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