opnsense-src/sys
Dag-Erling Smørgrav dd81cc2bc5 getdirentries: Return ENOTDIR if not a directory.
This is both more logical and more useful than EINVAL.

While here, also check for VBAD and return EBADF in that case.  This can
happen if the underlying filesystem got forcibly unmounted after the
directory was opened.  Previously, this would also have returned EINVAL,
which wasn't right but wasn't wrong either; however, ENOTDIR would not
be appropriate.

MFC after:	never
Sponsored by:	Klara, Inc.
Reviewed by:	kevans, kib
Differential Revision:	https://reviews.freebsd.org/D51209
2025-07-09 22:34:18 +02:00
..
amd64 amd64: move efi_map_regs definition 2025-07-07 07:07:15 +03:00
arm riscv: enable allwinner RTC 2025-07-04 12:55:55 -03:00
arm64 linux: Regenerate system call definitions 2025-07-04 14:42:34 +00:00
bsm vfs: Initial revision of inotify 2025-07-04 14:42:33 +00:00
cam cam/mmc: style(9) pass: put { starting functions on its own line 2025-07-08 16:52:04 -06:00
cddl machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
compat Regen. 2025-07-07 00:20:45 +03:00
conf files: add new IPFILTER_C rule for netpfil/ipfilter sources 2025-07-07 20:03:33 -07: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 nvmf: Auto-reconnect periodically after a disconnect 2025-07-09 10:19:45 -04:00
dts
fs nfsserver rename: lock mnt_renamelock as required 2025-07-09 20:38:11 +03: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 linux: Regenerate system call definitions 2025-07-04 14:42:34 +00:00
isa newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
kern getdirentries: Return ENOTDIR if not a directory. 2025-07-09 22:34:18 +02:00
kgssapi
libkern machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
modules sound: Retire midisynth 2025-07-06 16:08:18 +03:00
net pf: assert that we call pf_addrcpy() with a valid address family 2025-07-09 10:57:50 +02:00
net80211 net80211: update ieee80211_output_seqno_assign() to 802.11-2020 2025-07-08 12:37:03 -07:00
netgraph Internal scheduling priorities: Always use symbolic ones 2025-06-17 22:08:02 -04:00
netinet tcp: don't allow to connect a TCP/IPv6 endpoint in TIME WAIT state 2025-07-07 18:29:35 +02:00
netinet6 counter(9): rate limit periods may be more than 1 second 2025-06-25 19:56:22 +02:00
netipsec machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
netlink machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
netpfil pfsync: count failed state insertions 2025-07-09 17:38:08 +02:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto newbus: replace leftover device unit wildcards 2025-06-21 05:57:45 +03:00
powerpc gpio: attach gpiobus when the controller is ready 2025-07-04 16:56:00 +03:00
riscv riscv: add aw_rtc device to config 2025-07-04 13:17:45 -03:00
rpc rpctls_impl.c: Fix handling of socket for daemon failure 2025-06-21 16:49:13 -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 VOP_WRITE_POST(): correct condition for knote activation 2025-07-07 16:44:21 +03: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 vm_fault: drop never-true busy_sleep test 2025-07-06 15:46:00 -05: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