freebsd_amp_hwpstate/sys
Warner Losh 30e0d2a510 linux: For better compatibility, provide compatible endian.h
Add endian.h. This includes sys/endian.h and then adds extra defines
that glibc defines with double underscores for our
_{BIG,BYTE,LITTLE,PDP}_ENDIAN macros. We also define __FLOAT_WORD_ORDER
to be the same as _BYTE_ENDIAN since FreeBSD doesn't currently define
this, and the default with glibc is exactly this for our platforms.
Move common parts of endian.h and sys/endian.h into sys/_endian.h
to limit namespace pollution from endian.h

All this gives us good compatibility with Linux. There may be one or two
upstreams that haven't integrated the patches I tried to send up.

There are some minor differences:
	o The extra glibc macros are not defined. These are all
	  controlled with either __ at the start, or only defined
	  when glibc is being built. We also don't define macros
	  that are used internally in glibc that would pollute
	  the namespace.
	o For complete compatibility, this change must also be
	  paired with providing a glibc-compatible byteswap.h.

Sponsored by:		Netflix
Reviewed by:		mhorne, markj, jhb
Differential Revision:	https://reviews.freebsd.org/D31962
2023-01-20 16:32:45 -07:00
..
amd64 vmm: fix use after free in ppt_detach() 2023-01-20 11:25:27 +00:00
arm copyright: chase my name and email change 2023-01-06 15:28:42 -05:00
arm64 Add CPU Ident for Qualcomm Kryo 400 (used in MS Dev Kit) 2023-01-18 21:04:49 +00:00
bsm
cam
cddl dtrace: correct the aframes value for fbt provider 2023-01-12 11:06:07 -04:00
compat linuxkpi: Define `hrtimer_try_to_cancel()` 2023-01-18 23:02:24 +01:00
conf riscv: always include frame pointer 2023-01-12 11:04:24 -04:00
contrib rtw88: use #define for NL80211_BAND_2GHZ instead of hardcoded number 2023-01-13 01:05:01 +00:00
crypto aesni: Remove misleading array bounds for aesni_decryt_ecb. 2022-12-07 12:32:19 -08:00
ddb
dev hms(4): Fix a copy/paste issue and check both _X and _Y 2023-01-20 23:29:53 +03:00
dts
fs nfsserver: Fix handling of SP4_NONE 2023-01-15 14:07:40 -08:00
gdb
geom GEOM: Remove redundant NULL pointer check before g_free() 2022-12-28 23:34:09 +08:00
gnu
i386 i386: Fix a typo in a source code comment 2023-01-11 11:29:23 +01:00
isa
kern Handle int rank issues in in vn_getsize_locked() and vn_seek() 2023-01-20 23:56:29 +02:00
kgssapi kgssapi: Increase timeout for kernel to gssd(8) upcalls 2023-01-11 13:20:31 -08:00
libkern
modules dtrace: include fbt module unconditionally 2023-01-12 11:04:36 -04:00
net if_ipsec(4): handle situations where there are no policy or SADB entry for if 2023-01-18 23:18:39 +02:00
net80211 iee80211_hwmp: Don't dereference NULL ni in debug printf. 2022-12-21 10:45:45 -08:00
netgraph
netinet ip_gre: Fix a common typo in source code comments 2023-01-19 14:13:02 +01:00
netinet6 ip_gre: Fix a common typo in source code comments 2023-01-19 14:13:02 +01:00
netipsec ipsec.c: typos in the comment 2023-01-18 23:22:35 +02:00
netlink netlink: Fix indentation in netlink_message_writer.c 2023-01-17 09:37:33 -05:00
netpfil pf: fix panic on deferred packets 2023-01-13 20:41:25 +01:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc vm: reduce lock contention when processing vm batchqueues 2022-12-14 14:34:07 -05:00
riscv riscv: Fix thread0.td_kstack_pages init 2023-01-17 16:37:42 +00:00
rpc krpc: Allow mountd/nfsd to optionally run in a jail 2022-12-18 12:40:48 -08:00
security vfs: stop using NDFREE 2022-12-19 08:07:23 +00:00
sys linux: For better compatibility, provide compatible endian.h 2023-01-20 16:32:45 -07:00
teken
tests
tools Improve debuggability of VOP_* locking assertions 2023-01-18 22:11:05 -06:00
ufs ffs_syncvnode(): avoid a LoR for SU 2023-01-14 20:28:11 +02:00
vm Handle ERELOOKUP from VOP_FSYNC() in several other places 2023-01-20 03:54:56 +02:00
x86 x86: ignore stepping for APL30 errata 2023-01-12 10:08:17 +01:00
xdr xdr: store chars consistently 2023-01-12 18:16:17 +00:00
xen
Makefile
README.md

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.

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
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