opnsense-src/sys/sys
Chuck Silvers d79ff54b5c This commit enables a UFS filesystem to do a forcible unmount when
the underlying media fails or becomes inaccessible. For example
when a USB flash memory card hosting a UFS filesystem is unplugged.

The strategy for handling disk I/O errors when soft updates are
enabled is to stop writing to the disk of the affected file system
but continue to accept I/O requests and report that all future
writes by the file system to that disk actually succeed. Then
initiate an asynchronous forced unmount of the affected file system.

There are two cases for disk I/O errors:

   - ENXIO, which means that this disk is gone and the lower layers
     of the storage stack already guarantee that no future I/O to
     this disk will succeed.

   - EIO (or most other errors), which means that this particular
     I/O request has failed but subsequent I/O requests to this
     disk might still succeed.

For ENXIO, we can just clear the error and continue, because we
know that the file system cannot affect the on-disk state after we
see this error. For EIO or other errors, we arrange for the geom_vfs
layer to reject all future I/O requests with ENXIO just like is
done when the geom_vfs is orphaned. In both cases, the file system
code can just clear the error and proceed with the forcible unmount.

This new treatment of I/O errors is needed for writes of any buffer
that is involved in a dependency. Most dependencies are described
by a structure attached to the buffer's b_dep field. But some are
created and processed as a result of the completion of the dependencies
attached to the buffer.

Clearing of some dependencies require a read. For example if there
is a dependency that requires an inode to be written, the disk block
containing that inode must be read, the updated inode copied into
place in that buffer, and the buffer then written back to disk.

Often the needed buffer is already in memory and can be used. But
if it needs to be read from the disk, the read will fail, so we
fabricate a buffer full of zeroes and pretend that the read succeeded.
This zero'ed buffer can be updated and written back to disk.

The only case where a buffer full of zeros causes the code to do
the wrong thing is when reading an inode buffer containing an inode
that still has an inode dependency in memory that will reinitialize
the effective link count (i_effnlink) based on the actual link count
(i_nlink) that we read. To handle this case we now store the i_nlink
value that we wrote in the inode dependency so that it can be
restored into the zero'ed buffer thus keeping the tracking of the
inode link count consistent.

Because applications depend on knowing when an attempt to write
their data to stable storage has failed, the fsync(2) and msync(2)
system calls need to return errors if data fails to be written to
stable storage. So these operations return ENXIO for every call
made on files in a file system where we have otherwise been ignoring
I/O errors.

Coauthered by: mckusick
Reviewed by:   kib
Tested by:     Peter Holm
Approved by:   mckusick (mentor)
Sponsored by:  Netflix
Differential Revision:  https://reviews.freebsd.org/D24088
2020-05-25 23:47:31 +00:00
..
disk Add DragonFly's partition number to fdisk(8) and diskmbr.h 2019-05-18 00:22:28 +00:00
_atomic64e.h [PowerPC] [MIPS] Implement 32-bit kernel emulation of atomic64 operations 2020-01-02 23:20:37 +00:00
_atomic_subword.h Expand generic subword atomic primitives 2020-03-25 23:12:43 +00:00
_bitset.h Implement several enhancements to NUMA policies. 2018-03-29 02:54:50 +00:00
_blockcount.h Add a blocking counter KPI. 2020-02-28 16:05:18 +00:00
_bus_dma.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_callout.h Add a callout_func_t typedef for functions used with callout_*(). 2019-12-10 21:58:30 +00:00
_cpuset.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_cscan_atomic.h Expand generic subword atomic primitives 2020-03-25 23:12:43 +00:00
_cscan_bus.h Port the NetBSD KCSAN runtime to FreeBSD. 2019-11-21 11:22:08 +00:00
_domainset.h Refactor domainset iterators for use by malloc(9) and UMA. 2018-10-23 16:35:58 +00:00
_eventhandler.h Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
_ffcounter.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_iovec.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
_lock.h Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
_lockmgr.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_mutex.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_null.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_pctrie.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_pthreadtypes.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_rangeset.h Implement rangesets. 2019-02-20 09:38:19 +00:00
_rmlock.h Add read-mostly sleepable locks 2019-12-27 11:19:57 +00:00
_rwlock.h Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
_semaphore.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_sigset.h Fix undefined behavior: left-shifting into the sign bit. 2019-12-23 20:18:05 +00:00
_smr.h Move SMR pointer type definition and access macros to smr_types.h. 2020-03-07 00:55:46 +00:00
_sockaddr_storage.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
_stack.h stack(9): Drop unused API mode and comment that referenced it 2019-03-15 22:39:55 +00:00
_stdarg.h With the fall-back hack for lint gone, I have no copyright claim on this file. 2018-05-06 21:22:46 +00:00
_stdint.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_sx.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_task.h Add flag to struct task to mark the task as requiring network epoch. 2020-02-11 18:48:07 +00:00
_termios.h Some devices take undesired actions when RTS and DTR are 2019-06-12 18:07:04 +00:00
_timespec.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
_timeval.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_types.h Reduce namespace pollution from r349233 2019-06-21 21:50:14 +00:00
_ucontext.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
_uio.h Move uio enums to sys/_uio.h. 2018-03-27 15:20:03 +00:00
_umtx.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
_unrhdr.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
aac_ioctl.h Fix FSACTL_GET_NEXT_ADAPTER_FIB under 32-bit compat. 2018-03-14 21:11:41 +00:00
abi_compat.h Centralize compatability translation macros. 2020-04-14 20:30:48 +00:00
acct.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
acl.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
agpio.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
aio.h Fix a comment. No functional change. 2018-02-12 17:42:28 +00:00
alq.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
apm.h
arb.h Add copyrights that I forgot to add when splitting arb.h off from tree.h. 2019-10-15 19:44:43 +00:00
assym.h make critical_{enter, exit} inline 2018-07-03 01:55:09 +00:00
ata.h Remove duplicated ATA_CHECK_POWER_MODE 2020-02-28 01:02:01 +00:00
atomic_common.h Make atomic_load_ptr type-aware 2020-02-14 23:15:41 +00:00
auxv.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
bio.h Remove GEOM_SCHED class and gsched tool. 2019-12-29 21:16:03 +00:00
bitset.h Fix undefined behavior: left-shifting into the sign bit. 2019-12-23 20:18:05 +00:00
bitstring.h bistring: avoid gcc -Wsign-compare 2019-12-04 20:15:17 +00:00
blist.h A new parameter to blist_alloc specifies an upper bound on the size of 2019-05-11 16:15:13 +00:00
blockcount.h Handle PCATCH in blockcount_sleep() so it can be interrupted. 2020-04-21 17:13:06 +00:00
boot.h Move to using a common kernel path between the boot / laoder bits and 2019-06-24 20:34:53 +00:00
buf.h This commit enables a UFS filesystem to do a forcible unmount when 2020-05-25 23:47:31 +00:00
buf_ring.h This patch offers a workaround to buf_ring reordering 2019-04-23 06:36:32 +00:00
bufobj.h Add a new "mntfs" pseudo file system which provides private device vnodes for 2020-03-06 18:41:37 +00:00
bus.h Create new wrapper function: bus_delayed_attach_children() 2019-12-13 19:39:33 +00:00
bus_dma.h Add support for optional separate output buffers to in-kernel crypto. 2020-05-25 22:12:04 +00:00
bus_dma_internal.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
busdma_bufalloc.h Fix compile error from r327900 2018-01-12 23:41:12 +00:00
callout.h Remove struct callout_handle. Should have gone with r355732. 2020-01-22 05:47:59 +00:00
caprights.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
capsicum.h Remove unused SYSINIT macros for capability rights. 2020-03-26 15:02:37 +00:00
cdefs.h gcc: quiet Wattribute for no_sanitize("address") 2019-12-21 02:43:20 +00:00
cdio.h Remove the CDIOCREADSUBCHANNEL_SYSSPACE ioctl. 2019-07-03 00:10:01 +00:00
cdrio.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
cfictl.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
chio.h Fix an old typo in the element status display bits: 2019-01-05 21:07:49 +00:00
ck.h ck: simplify interface with libkvm consumers by defining ck_queue types 2018-05-21 01:53:23 +00:00
clock.h Kill tz_minuteswest and tz_dsttime. 2019-03-12 04:49:47 +00:00
cnv.h libnv: Remove nvlist argument from cnvlist_{take,free}_* functions. 2018-06-18 21:26:58 +00:00
compressor.h Add support for zstd-compressed user and kernel core dumps. 2018-02-13 19:28:02 +00:00
condvar.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
conf.h sys/kern: quiet -Wwrite-strings 2020-02-23 03:32:16 +00:00
cons.h sys/kern: quiet -Wwrite-strings 2020-02-23 03:32:16 +00:00
consio.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
copyright.h Happy New Year 2020! 2019-12-31 16:01:36 +00:00
counter.h Add COUNTER_U64_SYSINIT() and COUNTER_U64_DEFINE_EARLY(). 2020-03-06 19:09:01 +00:00
coverage.h Extract the coverage sanitizer KPI to a new file. 2019-01-29 11:04:17 +00:00
cpu.h cpufreq(4): Add support for Intel Speed Shift 2020-01-22 23:28:42 +00:00
cpuctl.h Make it possible to re-evaluate cpu_features. 2018-01-05 21:06:19 +00:00
cpuset.h bitset: rename confusing macro NAND to ANDNOT 2019-12-13 09:32:16 +00:00
csan.h Port the NetBSD KCSAN runtime to FreeBSD. 2019-11-21 11:22:08 +00:00
ctype.h Change all kernel C-type macros into static inline functions. 2019-03-25 13:50:38 +00:00
devicestat.h devstat(9): Constify function parameters that can be const 2018-08-23 01:42:45 +00:00
devmap.h Generalize ARM specific comments in devmap 2019-10-15 23:21:52 +00:00
dirent.h Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
disk.h Enable sys/disk.h consumers to avoid pulling in networking headers. 2019-05-08 18:10:19 +00:00
disk_zone.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
disklabel.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
diskmbr.h Remove deprecated GEOM classes 2019-08-13 20:06:55 +00:00
dkstat.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
dnv.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
domain.h Add fibnum, family and vnet pointer to each rib head. 2020-01-09 17:21:00 +00:00
domainset.h bitset: rename confusing macro NAND to ANDNOT 2019-12-13 09:32:16 +00:00
dtrace_bsd.h Pass the trap frame to fasttrap hooks. 2017-12-11 19:21:39 +00:00
dvdio.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
efi.h efirt: When present, attempt to use EFI runtime services to shutdown 2018-12-15 05:46:04 +00:00
efiio.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
elf.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
elf32.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
elf64.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
elf_common.h Sync relocation definitions 2020-05-08 22:21:56 +00:00
elf_generic.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
endian.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
epoch.h Add flag to struct task to mark the task as requiring network epoch. 2020-02-11 18:48:07 +00:00
errno.h Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
eui64.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
event.h kevent32: fix the split of data into data1/data2 2020-04-21 16:13:22 +00:00
eventhandler.h Use an event handler to notify the SCTP about IP address changes 2019-10-13 18:17:08 +00:00
eventvar.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
exec.h Remove SPARE_USRSPACE. 2019-12-06 19:20:45 +00:00
extattr.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
fail.h Use callout(9) instead of deprecated timeout(9) for fail points. 2019-12-13 19:26:04 +00:00
fbio.h Use unsigned intptr_t type for framebuffer addresses 2017-12-06 02:05:21 +00:00
fcntl.h Provide O_SEARCH 2020-02-02 16:34:57 +00:00
fdcio.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
file.h vfs: scale foffset_lock by using atomics instead of serializing on mtx pool 2020-05-24 03:50:49 +00:00
filedesc.h pwd: unbreak repeated calls to set_rootvnode 2020-04-27 13:54:00 +00:00
filio.h Reduce namespace pollution from r349233 2019-06-21 21:50:14 +00:00
firmware.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
fnv_hash.h
gmon.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
gpio.h SPDX: Fix some cases wrongly attributed to MIT. 2017-11-30 15:10:11 +00:00
gpt.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
gsb_crc32.h Separate kernel crc32() implementation to its own header (gsb_crc32.h) and 2019-06-17 19:49:08 +00:00
gtaskqueue.h Remove the "config" taskqgroup and its KPIs. 2020-03-30 14:24:03 +00:00
hash.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
hhook.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
iconv.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
imgact.h Convert canary, execpathp, and pagesizes to pointers. 2020-04-16 21:53:17 +00:00
imgact_aout.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
imgact_binmisc.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
imgact_elf.h Introduce an AUXARGS_ENTRY_PTR() macro. 2020-04-15 20:19:59 +00:00
interrupt.h Enter the network epoch for interrupt handlers of INTR_TYPE_NET. 2020-01-23 01:24:47 +00:00
intr.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
ioccom.h Add _IOC_NEWLEN() and _IOC_NEWTYPE() macros. 2018-03-16 22:23:04 +00:00
ioctl.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ioctl_compat.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
iov.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
iov_schema.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
ipc.h Get rid of the requirement to include SysV IPC headers with _KERNEL 2018-02-16 01:33:01 +00:00
ipmi.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
jail.h ethersubr: Make the mac address generation more robust 2020-04-18 07:50:30 +00:00
joystick.h Remove #warning since it breaks libsysdecode 2018-10-26 04:53:29 +00:00
kbio.h
kcov.h Extract the coverage sanitizer KPI to a new file. 2019-01-29 11:04:17 +00:00
kdb.h Fix handling of NMIs from unknown sources (BMC, hypervisor) 2020-04-26 00:41:29 +00:00
kenv.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
kern_prefetch.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
kernel.h Add COUNTER_U64_SYSINIT() and COUNTER_U64_DEFINE_EARLY(). 2020-03-06 19:09:01 +00:00
kerneldump.h EKCD: Add Chacha20 encryption mode 2019-05-23 20:12:24 +00:00
khelp.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
kobj.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
kpilite.h expose sched_{pin,unpin}_lite to tied modules 2018-07-03 04:02:40 +00:00
ksem.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
kthread.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
ktls.h Step 2.1: Build TLS workqueue from mbufs, not struct mbuf_ext_pgs. 2020-05-02 23:38:13 +00:00
ktr.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
ktr_class.h Remove GEOM_SCHED class and gsched tool. 2019-12-29 21:16:03 +00:00
ktrace.h Annotate branches in the syscall path 2020-02-14 13:08:46 +00:00
libkern.h libkern: Add arc4random_uniform 2020-05-23 17:51:06 +00:00
limits.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
link_aout.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
link_elf.h Implement Solaris-like link_map l_refname member. 2020-05-22 17:52:09 +00:00
linker.h [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic(). 2020-03-18 02:58:18 +00:00
linker_set.h [PowerPC] Only move linker sets to .data on ELFv1 2019-12-19 22:35:16 +00:00
lock.h locks: add default delay struct 2020-01-05 12:48:19 +00:00
lock_profile.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
lockf.h Typo out->in. 2019-10-10 18:52:24 +00:00
lockmgr.h lockmgr: rename lock_fast_path to lock_flags 2020-02-14 11:21:28 +00:00
lockstat.h Add lockmgr(9) probes to the lockstat DTrace provider. 2019-08-21 23:43:58 +00:00
loginclass.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
mac.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
malloc.h Add zfree to zero allocation before free 2020-02-16 00:12:53 +00:00
mbuf.h Step 4.2: start divorce of M_EXT and M_EXTPG 2020-05-03 00:37:16 +00:00
mchain.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
md4.h SPDX: some uses of the RSA-MD license. 2017-12-13 16:30:39 +00:00
md5.h SPDX: some uses of the RSA-MD license. 2017-12-13 16:30:39 +00:00
mdioctl.h md(4): remove the unused and unusable MDIOCLIST ioctl. 2019-08-16 18:57:32 +00:00
memdesc.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
memrange.h
mman.h Jail and capability mode for shm_rename; add audit support for shm_rename 2019-11-18 13:31:16 +00:00
module.h Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
module_khelp.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
mount.h Deduplicate fsid comparisons 2020-05-21 01:55:35 +00:00
mouse.h psm(4): detect Lenovo top-button clickpads 2019-01-18 22:20:29 +00:00
mpt_ioctl.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
mqueue.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
msg.h Don't define struct mymsg. 2018-03-02 22:13:29 +00:00
msgbuf.h BOOT_TAG: Make a config(5) option, expose as sysctl and loader tunable 2018-08-09 17:47:47 +00:00
mtio.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
mutex.h Annotate Giant drop/pickup macros with __predict_false 2018-12-07 12:06:03 +00:00
namei.h Provide O_SEARCH 2020-02-02 16:34:57 +00:00
nlist_aout.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
nv.h libnv: Add nvlist_append_*_array() family of functions. 2018-06-18 22:57:32 +00:00
osd.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
param.h Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp 2020-05-23 10:32:18 +00:00
pciio.h Add ioctl to conveniently mmap a PCI device BAR into userspace. 2018-08-01 18:58:24 +00:00
pcpu.h Dedup zpcpu assertions into one macro and guard the rest with #ifndef 2020-02-12 11:14:23 +00:00
pctrie.h kern/subr_pctrie: Convert old-style boolean_t to plain "bool" 2019-04-06 20:38:44 +00:00
physmem.h Convert arm's physmem interface to MI code 2020-04-19 00:12:30 +00:00
pidctrl.h Add a generic Proportional Integral Derivative (PID) controller algorithm and 2018-02-23 22:51:51 +00:00
pipe.h Preallocate pipe buffers on pipe creation. 2020-03-09 21:55:26 +00:00
pmc.h Add hwpmc support for Intel Atom Goldmont microarchitecture 2020-04-06 19:45:26 +00:00
pmckern.h Fix annoying whitespace issue. 2019-06-25 19:55:42 +00:00
pmclog.h pmc: convert native to jsonl and track TSC value of samples 2018-06-07 02:03:22 +00:00
poll.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
posix4.h spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
power.h Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
priority.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
priv.h Partially decompose priv_check by adding priv_check_cred_vfs_generation 2020-02-13 22:22:15 +00:00
proc.h Use a single VM object for kernel stacks. 2020-04-26 20:08:57 +00:00
procctl.h Add procctl(PROC_STACKGAP_CTL) 2019-09-03 18:56:25 +00:00
procdesc.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
procfs.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
protosw.h Remove pfctlinput2(). It came from KAME and had never ever been in use. 2019-10-15 15:40:03 +00:00
ptio.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
ptrace.h Add ptrace op PT_GET_SC_RET. 2019-07-15 21:48:02 +00:00
qmath.h Fix the compilation workaround so it's not entirely dead code - clang 2019-10-09 18:46:56 +00:00
queue.h Trim trailing white space in comment 2020-02-26 12:38:21 +00:00
racct.h racct: add RACCT_ENABLED macro and racct_set_unlocked 2018-12-07 16:47:34 +00:00
random.h Remove ubsec(4). 2020-05-11 20:30:28 +00:00
rangelock.h rangelock: add rangelock_cookie_assert 2019-09-15 02:59:53 +00:00
rangeset.h Implement rangesets. 2019-02-20 09:38:19 +00:00
rctl.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
reboot.h Create helper functions for parsing boot args. 2018-07-13 16:43:05 +00:00
refcount.h Remove an #include erroneously added in r358432. 2020-03-04 22:23:24 +00:00
regression.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
resource.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
resourcevar.h schedlock 1/4 2019-12-15 21:11:15 +00:00
rman.h add support for marking interrupt handlers as suspended 2018-12-17 17:11:00 +00:00
rmlock.h Add rms_try_rlock and rms_wowned. 2020-01-31 08:36:49 +00:00
rtprio.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
runq.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
rwlock.h Drop "All rights reserved" from my copyright statements. 2019-03-06 22:11:45 +00:00
sbuf.h sbuf(9): Add sbuf_nl_terminate() API 2019-08-07 19:27:14 +00:00
sched.h SPDX: update some tags with two licenses. 2019-12-28 02:58:30 +00:00
sdt.h Provide SDT_PROBES_ENABLED for kernels without KDTRACE. 2018-12-19 23:19:05 +00:00
select.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
selinfo.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
sem.h Don't declare union semun in userspace unless _WANT_SEMUN is defined. 2018-03-02 22:32:53 +00:00
sema.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
seqc.h seqc: tidy up 2020-03-08 00:22:32 +00:00
serial.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
sf_buf.h Define PHYS_TO_DMAP() and DMAP_TO_PHYS() as panics on the architectures 2018-01-19 22:17:13 +00:00
sglist.h Step 2.2: 2020-05-02 23:46:29 +00:00
shm.h Implement shmat(2) flag SHM_REMAP. 2019-01-16 05:15:57 +00:00
sigio.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
signal.h Improve MD page fault handlers. 2019-09-27 18:43:36 +00:00
signalvar.h Return reschedule_signals() to being static again. 2020-03-10 20:04:38 +00:00
sleepqueue.h sleep(9), sleepqueue(9): const'ify wchan pointers 2019-12-24 16:19:33 +00:00
slicer.h Update a comment to reflect reality; no functional changes. 2019-02-26 22:07:59 +00:00
smp.h Add smp_rendezvous_cpus_retry 2020-02-12 11:16:55 +00:00
smr.h Move SMR pointer type definition and access macros to smr_types.h. 2020-03-07 00:55:46 +00:00
smr_types.h Move SMR pointer type definition and access macros to smr_types.h. 2020-03-07 00:55:46 +00:00
snoop.h Revert r327005 - SPDX tags for license similar to BSD-2-Clause. 2017-12-20 20:25:28 +00:00
sockbuf.h sbappendcontrol() needs to avoid clearing M_NOTREADY on data mbufs. 2020-04-10 20:42:11 +00:00
socket.h HyperV socket implementation for FreeBSD 2020-05-20 11:03:59 +00:00
socketvar.h Fix ACCEPT_FILTER_DEFINE to pass the version to MODULE_VERSION. 2020-05-21 18:38:41 +00:00
sockio.h Add SIOCGIFDOWNREASON. 2019-09-17 18:49:13 +00:00
sockopt.h sockopt.h: remove stale comment 2018-07-25 00:18:21 +00:00
soundcard.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
spigenio.h Add the ioctl definitions for spigen get/set spi mode. Should have been 2018-04-07 20:53:34 +00:00
stack.h Reimplement stack capture of running threads on i386 and amd64. 2020-01-31 15:43:33 +00:00
stat.h sys/stat.h: Improve timespec compatibility with other BSDs 2019-03-18 19:23:19 +00:00
stats.h Make use of the stats(3) framework in the TCP stack. 2019-12-02 20:58:04 +00:00
statvfs.h
stdatomic.h Make the system C11 atomics headers fully compatible with external GCC. 2018-08-06 23:51:08 +00:00
stddef.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
stdint.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
sx.h sx: retire SX_NOADAPTIVE 2018-12-05 16:43:03 +00:00
syscall.h sysent: re-roll after r359930 2020-04-14 18:11:26 +00:00
syscall.mk sysent: re-roll after r359930 2020-04-14 18:11:26 +00:00
syscallsubr.h Implement a close_range(2) syscall 2020-04-12 21:23:19 +00:00
sysctl.h Define SCTL_MASK32 when COMPAT_FREEBSD32 is defined. 2020-02-28 21:13:15 +00:00
sysent.h Extend support in sysctls for supporting multiple native ABIs. 2020-04-27 17:53:38 +00:00
syslimits.h Double the size of ARG_MAX on LP64 platforms. 2019-12-16 23:55:30 +00:00
syslog.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
sysproto.h sysent: re-roll after 360236 (AUE_CLOSERANGE used) 2020-04-24 01:30:33 +00:00
systm.h copystr(9): Move to deprecate (attempt #2) 2020-05-25 16:40:48 +00:00
taskqueue.h Remove assertion from TASK_INIT() macro, since some users of 2020-02-11 20:59:41 +00:00
terminal.h teken, vt(4): New callbacks to lock the terminal once 2018-05-16 09:01:02 +00:00
termios.h
thr.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
tiio.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
tim_filter.h This commit adds BBR (Bottleneck Bandwidth and RTT) congestion control. This 2019-09-24 18:18:11 +00:00
time.h Fix sbttons for values > 2s 2019-04-13 04:46:35 +00:00
timeb.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
timeet.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
timeffc.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
timepps.h SPDX: use the Beerware identifier. 2017-11-30 20:33:45 +00:00
timers.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
times.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
timespec.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
timetc.h SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
timex.h
tree.h For the case when RB_REMOVE requires a nontrivial search to find the 2020-05-21 05:34:02 +00:00
tslog.h Wrap includes in sys/tslog.h with #ifdef TSLOG. 2017-12-31 21:00:21 +00:00
tty.h tty: convert tty_lock_assert to tty_assert_locked to hide lock type 2020-04-17 18:34:49 +00:00
ttycom.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ttydefaults.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
ttydevsw.h tty: convert tty_lock_assert to tty_assert_locked to hide lock type 2020-04-17 18:34:49 +00:00
ttydisc.h tty: convert tty_lock_assert to tty_assert_locked to hide lock type 2020-04-17 18:34:49 +00:00
ttyhook.h tty: convert tty_lock_assert to tty_assert_locked to hide lock type 2020-04-17 18:34:49 +00:00
ttyqueue.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
turnstile.h Fix the turnstile_lock() KPI. 2019-07-24 23:04:59 +00:00
types.h sys/types.h: adjust #endif comment to match reality 2020-04-15 04:03:46 +00:00
ucontext.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
ucred.h proc: refactor clearing credentials into proc_unset_cred 2020-05-25 12:41:44 +00:00
uio.h Remove copyinfrom() and copyinstrfrom(). 2020-05-20 20:58:17 +00:00
umtx.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
un.h Make the path length of UNIX domain sockets specified by a #define. 2020-04-14 15:27:24 +00:00
unistd.h rfork(2): add RFSPAWN flag 2019-09-25 19:20:41 +00:00
unpcb.h Remove UNP_NASCENT, reverting r303855. 2020-03-20 16:17:54 +00:00
user.h sleep(9), sleepqueue(9): const'ify wchan pointers 2019-12-24 16:19:33 +00:00
utsname.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
uuid.h validate_uuid: absorb the rest of parse_uuid with a flags arg 2020-04-15 18:39:12 +00:00
vdso.h sys/sys: further adoption of SPDX licensing ID tags. 2017-11-27 15:01:59 +00:00
vmem.h Don't import 0 into vmem quantum caches. 2018-10-22 16:16:42 +00:00
vmmeter.h Provide separate accounting for user-wired pages. 2019-05-13 16:38:48 +00:00
vnode.h vfs: quiet -Wwrite-strings 2020-02-23 03:32:11 +00:00
vtoc.h
wait.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
watchdog.h Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00