..
Make.tags.inc
…
Makefile
…
bufq_disksort.c
…
bufq_fcfs.c
…
bufq_priocscan.c
…
bufq_readprio.c
…
cnmagic.c
…
compat_stub.c
fix various typos in compatibility, mainly in comments.
2021-08-09 20:49:08 +00:00
core_elf32.c
Use <compat/netbsd32/netbsd32.h> instead of <machine/netbsd32_machdep.h>,
2021-01-02 02:13:42 +00:00
core_elf64.c
…
core_netbsd.c
…
device_calls
Device call interface definition files for the "device" and "pci"
2021-09-15 17:26:06 +00:00
exec_aout.c
…
exec_ecoff.c
…
exec_elf.c
exec_elf: Sort auxv entries by value of types
2023-08-17 06:58:26 +00:00
exec_elf32.c
…
exec_elf64.c
…
exec_script.c
Remove duplicate #ifdef block.
2021-05-03 10:25:14 +00:00
exec_subr.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
files.kern
Add epoll(2) from Theodore Preduta as part of GSoC 2023
2023-07-28 18:18:59 +00:00
gendevcalls.awk
Add an awk program that reads in a device call interface description
2021-09-15 17:25:14 +00:00
genlintstub.awk
…
init_main.c
heartbeat(9): Move #ifdef HEARTBEAT to sys/heartbeat.h.
2023-09-02 17:44:59 +00:00
init_sysctl.c
KNF (sort #includes and remove duplicate sys/cpu.h)
2020-09-20 12:51:57 +00:00
init_sysctl_base.c
…
init_sysent.c
regen
2023-07-28 18:20:28 +00:00
kern_acct.c
s/commmand/command/ in comment.
2021-12-05 04:35:38 +00:00
kern_auth.c
kern: Eliminate most __HAVE_ATOMIC_AS_MEMBAR conditionals.
2023-02-24 11:02:27 +00:00
kern_cctr.c
Add some more detail/explanation to the calibration timing diagram.
2020-10-10 18:18:04 +00:00
kern_cfglock.c
…
kern_clock.c
heartbeat(9): Move #ifdef HEARTBEAT to sys/heartbeat.h.
2023-09-02 17:44:59 +00:00
kern_condvar.c
kern: New struct syncobj::sobj_name member for diagnostics.
2023-07-17 12:54:29 +00:00
kern_core.c
sys: Rip <sys/resourcevar.h> out of <uvm/uvm_param.h>.
2023-07-11 09:48:56 +00:00
kern_cpu.c
heartbeat(9): Move #ifdef HEARTBEAT to sys/heartbeat.h.
2023-09-02 17:44:59 +00:00
kern_crashme.c
crashme(9): New crash methods with raised ipl or kpreempt disabled.
2023-07-07 12:34:26 +00:00
kern_ctf.c
Check the CTF magic number in an endian friendly way (and don't use
2021-04-06 07:57:03 +00:00
kern_descrip.c
fcntl(2), flock(2): Assert FHASLOCK is clear if no fo_advlock.
2023-04-22 14:23:59 +00:00
kern_drvctl.c
driver(9): devsw_detach never fails. Make it return void.
2022-03-28 12:33:20 +00:00
kern_entropy.c
cprng(9): Drop and retake percpu reference across entropy_extract.
2023-08-05 11:21:24 +00:00
kern_event.c
Add epoll(2) from Theodore Preduta as part of GSoC 2023
2023-07-28 18:18:59 +00:00
kern_exec.c
posix_spawn(2): Plug leak in proc_alloc error branch.
2022-07-01 01:05:31 +00:00
kern_exit.c
s/sytle/style/ in comment.
2021-12-05 08:13:12 +00:00
kern_fileassoc.c
fileassoc(9): Fast paths to skip global locks when not in use.
2023-08-02 07:11:31 +00:00
kern_fork.c
Trailing whitespace
2023-02-25 08:22:00 +00:00
kern_heartbeat.c
heartbeat(9): Make heartbeat_suspend/resume nestable.
2023-09-06 12:29:14 +00:00
kern_history.c
…
kern_hook.c
kern/kern_hook.c: Get exec_lock from sys/exec.h.
2022-10-26 23:21:06 +00:00
kern_idle.c
Round of uvm.h cleanup.
2020-09-05 16:30:10 +00:00
kern_ksyms.c
ksyms(4): Reject negative offsets earlier in lseek.
2023-02-21 11:40:00 +00:00
kern_ksyms_buf.c
…
kern_kthread.c
kthread(9): Fix nested kthread_join.
2023-07-17 10:55:27 +00:00
kern_ktrace.c
ktrace(9): Zero-initialize padding for ktr_psig records.
2022-07-01 01:07:56 +00:00
kern_ktrace_vfs.c
Add containment for the cloning devices hack in vn_open.
2021-06-29 22:40:53 +00:00
kern_lock.c
Revert unintentional changes to kern_lock.c in previous commit.
2023-07-07 18:02:52 +00:00
kern_lwp.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
kern_malloc.c
…
kern_module.c
module(9): Make error message for multiple MODULE decls more obvious.
2023-01-31 13:21:37 +00:00
kern_module_hook.c
…
kern_module_vfs.c
Add containment for the cloning devices hack in vn_open.
2021-06-29 22:40:53 +00:00
kern_mutex.c
kern: New struct syncobj::sobj_name member for diagnostics.
2023-07-17 12:54:29 +00:00
kern_mutex_obj.c
kern: Eliminate most __HAVE_ATOMIC_AS_MEMBAR conditionals.
2023-02-24 11:02:27 +00:00
kern_ntptime.c
sys: Put externs for time_adjtime and time_adjusted in .h files.
2022-10-26 23:23:52 +00:00
kern_pax.c
kern/kern_pax.c: Get maxsmap from sys/resourcevar.h.
2022-10-26 23:22:38 +00:00
kern_physio.c
physio(9): Avoid left shift of negative in alignment check.
2022-07-10 23:11:55 +00:00
kern_pmf.c
kern_pmf.c: Fix whitespace, KNF, static.
2022-08-24 11:41:39 +00:00
kern_proc.c
Whitespace nit.
2023-09-04 09:13:23 +00:00
kern_prot.c
Move proc_lock into the data segment. It was dynamically allocated because
2020-05-23 23:42:41 +00:00
kern_ras.c
rasctl(2): Avoid arithmetic overflow.
2022-08-08 22:31:45 +00:00
kern_rate.c
…
kern_reboot.c
…
kern_resource.c
clock_gettime(2): Fix CLOCK_PROCESS/THREAD_CPUTIME_ID.
2023-07-08 20:02:10 +00:00
kern_runq.c
Oops. If a SCHED_RR thread is preempted and has exceeded its timeslice it
2020-05-23 21:24:41 +00:00
kern_rwlock.c
kern: New struct syncobj::sobj_name member for diagnostics.
2023-07-17 12:54:29 +00:00
kern_rwlock_obj.c
kern: Eliminate most __HAVE_ATOMIC_AS_MEMBAR conditionals.
2023-02-24 11:02:27 +00:00
kern_scdebug.c
…
kern_sdt.c
…
kern_sig.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
kern_sleepq.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
kern_softint.c
Revert "softint(9): Sprinkle KASSERT(!cold)."
2023-08-04 12:24:36 +00:00
kern_ssp.c
…
kern_stub.c
New functions kthread_fpu_enter/exit.
2020-08-01 02:04:55 +00:00
kern_subr.c
If a specified root device does not exist when the kernel tries to
2023-01-19 07:40:58 +00:00
kern_synch.c
kern: New struct syncobj::sobj_name member for diagnostics.
2023-07-17 12:54:29 +00:00
kern_syscall.c
PR/55629: Andreas Gustafsson: Don't crash when an emulation does not provide
2020-08-31 19:51:30 +00:00
kern_sysctl.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
kern_tc.c
timecounter(9): Nix trailing whitespace.
2023-07-30 12:39:18 +00:00
kern_threadpool.c
threadpool(9): Fix synchronization between cancel and dispatch.
2021-01-23 16:33:49 +00:00
kern_time.c
itimer(9): Sprinkle some more assertions.
2023-02-23 02:57:17 +00:00
kern_timeout.c
callout(9): Delete the unused member cc_cancel from struct callout_cpu
2023-06-27 01:19:44 +00:00
kern_todr.c
Print the "preposterous TOD clock time" message only if the RTC is
2021-04-03 12:06:53 +00:00
kern_turnstile.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
kern_uidinfo.c
kern: Show relevant variables for uidinfo counts in kasserts.
2021-12-28 13:28:24 +00:00
kern_uuid.c
…
kern_veriexec.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
kgdb_stub.c
kgdb(9): Use ddb/db_extern.h instead of copying extern.
2022-10-26 23:26:57 +00:00
makesyscalls.sh
Add epoll(2) from Theodore Preduta as part of GSoC 2023
2023-07-28 18:18:59 +00:00
sched_4bsd.c
sys/sched.h: New home for extern sched_pstats_ticks in kernel.
2022-10-26 23:24:09 +00:00
sched_m2.c
Oops. If a SCHED_RR thread is preempted and has exceeded its timeslice it
2020-05-23 21:24:41 +00:00
subr_acl_nfs4.c
Add ACL support for FFS. From FreeBSD.
2020-05-16 18:31:45 +00:00
subr_acl_posix1e.c
Add ACL support for FFS. From FreeBSD.
2020-05-16 18:31:45 +00:00
subr_asan.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
subr_autoconf.c
autoconf(9): Print `waiting for devices' normally once a minute.
2023-07-18 11:57:37 +00:00
subr_blist.c
fix various typos in comments, documentation and messages.
2022-05-31 08:43:13 +00:00
subr_bufq.c
…
subr_callback.c
…
subr_copy.c
uiomove(9): Add uiopeek/uioskip operations.
2023-05-22 14:07:24 +00:00
subr_cprng.c
cprng(9): Drop and retake percpu reference across entropy_extract.
2023-08-05 11:21:24 +00:00
subr_cpu.c
curcpu_stable(9): New function for asserting curcpu() is stable.
2023-07-08 13:59:05 +00:00
subr_cpufreq.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
subr_csan.c
sys/atomic.h: Fix atomic_store_* on sparcv7, sparcv8.
2022-07-30 14:13:27 +00:00
subr_debug.c
…
subr_device.c
sys: Split struct device into a private device_impl.h.
2022-03-28 12:38:57 +00:00
subr_devsw.c
kern/subr_devsw.c: Nix trailing whitespace.
2023-02-15 13:12:45 +00:00
subr_disk.c
ioctl(DIOCRMWEDGES): Delete only idle wedges.
2023-05-09 12:04:04 +00:00
subr_disk_mbr.c
Fix typos: s/trough/through/
2023-04-03 18:03:23 +00:00
subr_disk_open.c
…
subr_disklabel.c
…
subr_emul.c
…
subr_evcnt.c
avoid an error in the recent sys/evcnt.h change to drop the 0
2021-04-17 00:05:31 +00:00
subr_exec_fd.c
Add containment for the cloning devices hack in vn_open.
2021-06-29 22:40:53 +00:00
subr_extent.c
…
subr_fault.c
be one-shot by default, with room for circular
2020-06-30 16:28:17 +00:00
subr_hash.c
Return ENOENT if the hashstat sysctl was called to query a specific hash
2021-06-13 14:58:49 +00:00
subr_humanize.c
…
subr_interrupt.c
s/occured/occurred/ in comments, log messages and man pages.
2021-12-10 20:36:02 +00:00
subr_iostat.c
…
subr_ipi.c
kern: Eliminate most __HAVE_ATOMIC_AS_MEMBAR conditionals.
2023-02-24 11:02:27 +00:00
subr_kcov.c
kern/subr_kcov.c: We already get cold from sys/kernel.h.
2022-10-26 23:24:21 +00:00
subr_kcpuset.c
Trailing whitespace.
2023-09-01 16:57:33 +00:00
subr_kmem.c
kmem(9): Tweak branch predictions in fast paths.
2023-04-09 08:50:20 +00:00
subr_kobj.c
Pass local symbols relocations in both passes and provide the kobj_reloc
2023-04-28 07:33:55 +00:00
subr_kobj_vfs.c
Add containment for the cloning devices hack in vn_open.
2021-06-29 22:40:53 +00:00
subr_localcount.c
…
subr_lockdebug.c
Fix "error: cast from pointer to integer of different size" on
2022-09-02 06:01:38 +00:00
subr_log.c
kern/subr_log.c: log_lock is private; make it static, not extern.
2022-10-26 23:28:30 +00:00
subr_lwp_specificdata.c
…
subr_msan.c
kmsan: Format exact instruction addresses relative to symbols.
2023-04-11 10:19:56 +00:00
subr_once.c
…
subr_optstr.c
Extend optstr(9) to provide some functions to convert the value.
2023-04-20 09:04:45 +00:00
subr_pcq.c
kern: Eliminate most __HAVE_ATOMIC_AS_MEMBAR conditionals.
2023-02-24 11:02:27 +00:00
subr_pcu.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
subr_percpu.c
Teach percpu to run constructors on CPU attach.
2020-05-11 21:37:31 +00:00
subr_physmap.c
fix typos in word "segment" and two additional typos in if_tl.c.
2021-09-06 20:55:08 +00:00
subr_pool.c
pool(9): Tweak branch prediction in pool_cache_get_paddr assertion.
2023-04-09 12:21:59 +00:00
subr_prf.c
remove broken #ifdef KADB code block in subr_prf.
2023-08-29 21:23:14 +00:00
subr_prof.c
Improved the performance of kernel profiling on MULTIPROCESSOR, and possible to get profiling data for each CPU.
2021-08-14 17:51:18 +00:00
subr_pserialize.c
pserialize(9): Fix buggy assertion inside assertion.
2023-04-16 04:52:19 +00:00
subr_psref.c
more __diagused to appease clang
2022-02-12 16:31:06 +00:00
subr_specificdata.c
…
subr_spldebug.c
…
subr_syscall_stats.c
…
subr_tftproot.c
Remove unnecessary inclusion of <sys/timevar.h>
2020-12-05 17:42:29 +00:00
subr_thmap.c
thmap(9): kmem_zalloc(KM_SLEEP) never fails. Prune dead branch.
2023-04-11 13:06:21 +00:00
subr_time.c
clock_gettime(2): Fix CLOCK_PROCESS/THREAD_CPUTIME_ID.
2023-07-08 20:02:10 +00:00
subr_userconf.c
…
subr_vmem.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
subr_workqueue.c
workqueue(9): Factor out wq->wq_flags & WQ_FPU in workqueue_worker.
2023-08-09 08:24:18 +00:00
subr_xcall.c
xcall(9): Rename condvars to be less confusing.
2023-08-06 17:50:20 +00:00
sys_aio.c
Move proc_lock into the data segment. It was dynamically allocated because
2020-05-23 23:42:41 +00:00
sys_descrip.c
Add memfd_create(2) from GSoC 2023 by Theodore Preduta
2023-07-10 02:31:54 +00:00
sys_epoll.c
Add EPOLL_CLOEXEC (Theodore Preduta)
2023-07-30 18:31:13 +00:00
sys_eventfd.c
Implement eventfd_ioctl() and handle FIONBIO so that fcntl(O_NONBLOCK)
2022-02-17 16:28:29 +00:00
sys_futex.c
kern: Eliminate most __HAVE_ATOMIC_AS_MEMBAR conditionals.
2023-02-24 11:02:27 +00:00
sys_generic.c
readv(2), writev(2): Avoid arithmetic overflow in bounds check.
2022-07-10 23:12:12 +00:00
sys_getrandom.c
sys: Use preempt_point and preempt_needed, not open-coded versions.
2021-12-28 13:22:43 +00:00
sys_lwp.c
kern: New struct syncobj::sobj_name member for diagnostics.
2023-07-17 12:54:29 +00:00
sys_memfd.c
F_GETPATH guarantees that data points to a MAXPATHLEN pointer, so go back
2023-08-12 23:22:49 +00:00
sys_module.c
s/build-in/built-in/ in comments.
2022-05-24 06:20:04 +00:00
sys_mqueue.c
Move proc_lock into the data segment. It was dynamically allocated because
2020-05-23 23:42:41 +00:00
sys_pipe.c
file(9): New fo_posix_fadvise operation.
2023-04-22 13:53:02 +00:00
sys_process.c
Catch up with the usage of struct vmspace::vm_refcnt
2020-05-26 00:50:53 +00:00
sys_process_lwpstatus.c
ptrace(PT_LWPSTATUS): Fix lid=0 case.
2022-07-10 17:47:58 +00:00
sys_pset.c
Move proc_lock into the data segment. It was dynamically allocated because
2020-05-23 23:42:41 +00:00
sys_ptrace.c
kern/sys_ptrace.c: Nix trailing whitespace.
2022-07-10 14:07:55 +00:00
sys_ptrace_common.c
fix various typos in compatibility, mainly in comments.
2021-08-09 20:49:08 +00:00
sys_sched.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
sys_select.c
kern: New struct syncobj::sobj_name member for diagnostics.
2023-07-17 12:54:29 +00:00
sys_sig.c
s/substract/subtract/ in comments and error message.
2022-04-21 21:31:11 +00:00
sys_socket.c
file(9): New fo_posix_fadvise operation.
2023-04-22 13:53:02 +00:00
sys_syscall.c
Synchronize SYS_SYSCALL() with other syscall implementations and
2022-06-29 16:33:09 +00:00
sys_timerfd.c
Implement eventfd_ioctl() and handle FIONBIO so that fcntl(O_NONBLOCK)
2022-02-17 16:28:29 +00:00
syscalls.c
regen
2023-07-28 18:20:28 +00:00
syscalls.conf
Add epoll(2) from Theodore Preduta as part of GSoC 2023
2023-07-28 18:18:59 +00:00
syscalls.master
Add epoll(2) from Theodore Preduta as part of GSoC 2023
2023-07-28 18:18:59 +00:00
syscalls_autoload.c
regen
2023-07-28 18:20:28 +00:00
systrace_args.c
regen
2023-07-28 18:20:28 +00:00
sysv_ipc.c
Expose groupmember as kauth_cred_groupmember and use it.
2022-03-27 16:23:08 +00:00
sysv_msg.c
…
sysv_sem.c
…
sysv_shm.c
…
tty.c
tty(9): Make ttwrite update uio with only how much it has consumed.
2023-05-22 14:07:37 +00:00
tty_bsdpty.c
…
tty_conf.c
fix various typos in compatibility, mainly in comments.
2021-08-09 20:49:08 +00:00
tty_ptm.c
kern: KASSERT(A && B) -> KASSERT(A); KASSERT(B)
2023-04-09 09:18:09 +00:00
tty_pty.c
Setting EV_EOF requires modifying kn->kn_flags. However, that relies on
2021-10-11 01:07:36 +00:00
tty_subr.c
…
tty_tty.c
Move proc_lock into the data segment. It was dynamically allocated because
2020-05-23 23:42:41 +00:00
uipc_accf.c
…
uipc_domain.c
sockaddr_alloc(9): Avoid uninitialized buffer in sockaddr_checklen.
2023-03-30 15:58:21 +00:00
uipc_mbuf.c
mbuf(9): New m_get_n, m_gethdr_n.
2023-04-12 06:48:08 +00:00
uipc_mbufdebug.c
…
uipc_proto.c
…
uipc_sem.c
when updating the per-uid "semcnt", decrement the counter for the uid
2020-12-14 23:12:12 +00:00
uipc_socket.c
s/acccept/accept/ in comment.
2023-08-05 09:25:39 +00:00
uipc_socket2.c
ddb/db_active.h: New home for extern db_active.
2022-10-26 23:38:05 +00:00
uipc_syscalls.c
sendto(2), recvfrom(2): Scrub internal struct msghdr on stack.
2022-07-01 22:30:51 +00:00
uipc_usrreq.c
s/grabing/grabbing/ in comments.
2022-05-28 22:08:46 +00:00
vfs_acl.c
Add ACL support for FFS. From FreeBSD.
2020-05-16 18:31:45 +00:00
vfs_bio.c
Revert "kern: Sprinkle biglock-slippage assertions."
2022-03-30 14:54:29 +00:00
vfs_cache.c
vfs(9): Move SDT_PROVIDER_DEFINE(vfs) from vfs_cache.c to vfs_init.c.
2023-04-29 10:07:22 +00:00
vfs_cwd.c
sys: Use membar_release/acquire around reference drop.
2022-04-09 23:38:31 +00:00
vfs_dirhash.c
Remove reference to udf_node in comment; it is FS agnostic.
2022-09-28 09:57:13 +00:00
vfs_getcwd.c
Now remove cn_consume from struct componentname.
2021-06-29 22:39:20 +00:00
vfs_hooks.c
…
vfs_init.c
vfs(9): Move SDT_PROVIDER_DEFINE(vfs) from vfs_cache.c to vfs_init.c.
2023-04-29 10:07:22 +00:00
vfs_lockf.c
kern/vfs_lockf.c: Parenthesize to make arithmetic match check.
2022-11-25 16:15:39 +00:00
vfs_lookup.c
Default PROC_MACHINE_ARCH to machine_arch and use this for magic
2023-05-01 05:12:44 +00:00
vfs_mount.c
kern: Eliminate most __HAVE_ATOMIC_AS_MEMBAR conditionals.
2023-02-24 11:02:27 +00:00
vfs_quotactl.c
…
vfs_subr.c
kern/vfs_subr.c: Revert previous build fixes, no longer needed.
2023-04-30 08:46:11 +00:00
vfs_syscalls.c
Add memfd_create(2) from GSoC 2023 by Theodore Preduta
2023-07-10 02:31:54 +00:00
vfs_trans.c
Add a helper to set or clear lower mount and use it.
2022-11-04 11:20:39 +00:00
vfs_vnode.c
kern: Eliminate most __HAVE_ATOMIC_AS_MEMBAR conditionals.
2023-02-24 11:02:27 +00:00
vfs_vnops.c
Add memfd_create(2) from GSoC 2023 by Theodore Preduta
2023-07-10 02:31:54 +00:00
vfs_wapbl.c
sys: Use membar_release/acquire around reference drop.
2022-04-09 23:38:31 +00:00
vfs_xattr.c
extattr_set_vp(): properly handle XATTR_REPLACE flags, FFSv2ea will return
2023-03-24 12:22:52 +00:00
vnode_if.c
Regen.
2023-06-15 09:15:13 +00:00
vnode_if.sh
miscfs/deadfs/deadfs.h: New home for deadfs-related externs.
2022-10-26 23:39:43 +00:00
vnode_if.src
VOP_IOCTL() is a wrapper around spec_ioctl() aka Xdev_ioctl() and
2023-06-15 09:13:36 +00:00