netbsd-src/sys/kern
martin 85cbce96d9 Fix a few oversights from the renaming of dup3110 to dup3100 2024-05-20 09:37:34 +00:00
..
Make.tags.inc
Makefile
bufq_disksort.c
bufq_fcfs.c
bufq_priocscan.c
bufq_readprio.c
cnmagic.c
compat_stub.c Modularize the COMPAT_90 code that resulted from the removal of 2023-12-09 15:21:01 +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 Move all non-emulation-specific coredump code into the coredump module, 2019-11-20 19:37:51 +00:00
device_calls Device call interface definition files for the "device" and "pci" 2021-09-15 17:26:06 +00:00
exec_aout.c Move all non-emulation-specific coredump code into the coredump module, 2019-11-20 19:37:51 +00:00
exec_ecoff.c Move all non-emulation-specific coredump code into the coredump module, 2019-11-20 19:37:51 +00:00
exec_elf.c exec_elf: Sort auxv entries by value of types 2023-08-17 06:58:26 +00:00
exec_elf32.c Move all non-emulation-specific coredump code into the coredump module, 2019-11-20 19:37:51 +00:00
exec_elf64.c Move all non-emulation-specific coredump code into the coredump module, 2019-11-20 19:37:51 +00:00
exec_script.c Remove duplicate #ifdef block. 2021-05-03 10:25:14 +00:00
exec_subr.c pax(9): Rework header file more coherently to nix some needless #ifs. 2023-11-21 14:35:36 +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 fix spelling mistakes, mainly in comments and log messages. 2024-02-09 22:08:30 +00:00
genlintstub.awk
init_main.c Revert previous until I can diagnose a failure reported by gson. 2024-03-05 20:59:41 +00:00
init_sysctl.c Move the initialization of the random hash for addresses earlier so that 2023-09-09 16:01:09 +00:00
init_sysctl_base.c fix tripple n typos in "running"/"domainname", also one missing n in comments. 2023-12-20 20:35:37 +00:00
init_sysent.c regen 2024-05-20 01:40:44 +00:00
kern_acct.c s/commmand/command/ in comment. 2021-12-05 04:35:38 +00:00
kern_auth.c kauth_cred_hold(): return cred verbatim so that donating a reference to 2023-10-04 22:17:09 +00:00
kern_cctr.c kern_cctr.c: Fix broken indentation. 2023-10-05 12:05:59 +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 Back out the following revisions on behalf of core: 2023-11-02 10:31:55 +00:00
kern_core.c kauth_cred_hold(): return cred verbatim so that donating a reference to 2023-10-04 22:17:09 +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 kauth_cred_hold(): return cred verbatim so that donating a reference to 2023-10-04 22:17:09 +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 Eliminate l->l_ncsw and l->l_nivcsw. From memory think they were added 2023-10-04 20:28:05 +00:00
kern_event.c s/ for for / for / in comment. 2023-09-21 09:31:49 +00:00
kern_exec.c Defer some wakeups till lock release. 2023-10-08 12:38:58 +00:00
kern_exit.c Defer some wakeups till lock release. 2023-10-08 12:38:58 +00:00
kern_fileassoc.c Initialize mutex fileassoc_global.lock. 2023-12-28 12:49:06 +00:00
kern_fork.c fix recently committed typos by msaitoh in few more places, as well as few more. 2024-05-14 19:00:43 +00:00
kern_heartbeat.c heartbeat(9): Return early if panicstr is set. 2024-03-08 23:34:03 +00:00
kern_history.c Traiing whitespace 2019-10-09 05:59:51 +00:00
kern_hook.c Protect kernel hooks exechook, exithook and forkhook with rwlock. 2024-01-17 10:18:41 +00:00
kern_idle.c check that l_nopreempt (preemption count) doesn't change after callbacks 2024-03-01 04:32:38 +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 kernel_lock isn't needed to synchronise kthread_exit() and kthread_join(). 2023-09-23 14:40:42 +00:00
kern_ktrace.c kern_ktrace.c: Sort includes. No functional change intended. 2023-10-17 10:27:34 +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 Surround db_stacktrace() with "#ifdef DDB" check. 2024-01-14 11:46:05 +00:00
kern_lwp.c s/deatched/detached/ in comment. While here, fix an article before annoyance. 2023-12-20 21:03:50 +00:00
kern_malloc.c Add support for Kernel Memory Sanitizer (kMSan). It detects uninitialized 2019-11-14 16:23:52 +00:00
kern_module.c s/signficant/significant/ in comment. 2024-05-13 00:32:09 +00:00
kern_module_hook.c Trailing whitespace 2019-12-13 08:02:53 +00:00
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_mutex.c: Sort includes. No functional change intended. 2023-10-15 10:28:23 +00:00
kern_mutex_obj.c Use kmem_intr_*() variants for lock objects since aiodoned was done away 2023-10-02 21:03:55 +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 Arrange to update cached LWP credentials in userret() rather than during 2023-10-05 19:41:03 +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 Move the at-shutdown call to resettodr() from cpu_reboot() to kern_reboot(). 2024-03-05 14:15:28 +00:00
kern_resource.c Eliminate l->l_ncsw and l->l_nivcsw. From memory think they were added 2023-10-04 20:28:05 +00:00
kern_runq.c Fix a comment. 2023-09-19 22:15:32 +00:00
kern_rwlock.c kern_rwlock.c: Sort includes. No functional change intended. 2023-10-15 10:28:48 +00:00
kern_rwlock_obj.c Use kmem_intr_*() variants for lock objects since aiodoned was done away 2023-10-02 21:03:55 +00:00
kern_scdebug.c
kern_sdt.c
kern_sig.c s/musn't/mustn't/ in comments. 2024-02-10 09:24:17 +00:00
kern_sleepq.c Back out the following revisions on behalf of core: 2023-11-02 10:31:55 +00:00
kern_softint.c check that l_nopreempt (preemption count) doesn't change after callbacks 2024-03-01 04:32:38 +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 kpause(9): KASSERT -> KASSERTMSG 2023-11-22 13:18:48 +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 Move the initialization of the random hash for addresses earlier so that 2023-09-09 16:01:09 +00:00
kern_tc.c s/timetamp/timestamp/ in comment. 2024-05-11 06:34:45 +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 Ensure that an LWP that has taken a legitimate wakeup never produces an 2023-10-08 13:23:05 +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_turnstile.c: Use <sys/lwp.h> explicitly for struct lwp members. 2023-10-15 10:30:20 +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 Unbreak sched_m2 (died because lwp_eproc() KASSERT in DIAGNOSTIC) and explain 2024-01-24 16:11:48 +00:00
subr_acl_nfs4.c add lint comments 2024-01-19 19:07:38 +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 Revert previous until I can diagnose a failure reported by gson. 2024-03-05 20:59:41 +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 Make getdiskinfo() compatible with a DIOCGWEDGEINFO. 2020-02-29 14:44:44 +00:00
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 Account for trailing NUL bytes when calculating userland buffer size. 2024-05-04 13:33:18 +00:00
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 Repply this change with a couple of bugs fixed: 2023-09-23 18:21:11 +00:00
subr_kmem.c Assert that kmem_alloc() provides the expected alignment. 2023-09-10 14:29:13 +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 Eliminate l->l_ncsw and l->l_nivcsw. From memory think they were added 2023-10-04 20:28:05 +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): Preallocate GC list storage for thmap_del. 2023-10-17 11:57:20 +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 vmem_init(): Ensure that the quantum is a power of 2, and that if private 2024-04-24 02:08:03 +00:00
subr_workqueue.c check that l_nopreempt (preemption count) doesn't change after callbacks 2024-03-01 04:32:38 +00:00
subr_xcall.c check that l_nopreempt (preemption count) doesn't change after callbacks 2024-03-01 04:32:38 +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 Fix a few oversights from the renaming of dup3110 to dup3100 2024-05-20 09:37:34 +00:00
sys_epoll.c Add EPOLL_CLOEXEC (Theodore Preduta) 2023-07-30 18:31:13 +00:00
sys_eventfd.c eventfd(2): Prune dead branch. 2023-11-19 17:16:00 +00:00
sys_futex.c sys_futex.c: Fix illustration of futex(2). 2024-04-11 13:51:36 +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_lwp.c: Sort includes. No functional change intended. 2023-10-15 10:29:24 +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 fix various typos in comments and log messages. 2024-02-10 09:21:51 +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 sys_select.c: Sort includes. No functional change intended. 2023-10-15 10:29:34 +00:00
sys_sig.c Sprinkle a bunch more calls to lwp_need_userret(). There should be no 2023-10-04 20:42:38 +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 2024-05-20 01:40:44 +00:00
syscalls.conf version dup3 2024-05-19 22:25:47 +00:00
syscalls.master Rename dup3110 to dup3100 to match historical practice for NetBSD-11, 2024-05-20 01:30:33 +00:00
syscalls_autoload.c regen 2024-05-20 01:40:44 +00:00
systrace_args.c regen 2024-05-20 01:40:44 +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 Avoid overflow when computing kern.ipc.shmmax. Keep shmmax (bytes) and 2024-03-02 08:59:47 +00:00
tty.c There's no COMPAT_60 code left here, so no need for conditional 2023-12-07 09:00:32 +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 s/transfered/transferred/ 2019-12-27 09:41:48 +00:00
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: avoid assertion failure when splitting mbuf cluster 2023-11-27 02:50:27 +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 make kqfilter() behave the same for PIPE_SOCKETPAIR pipe as it does 2024-02-11 13:01:29 +00:00
uipc_socket2.c s/addreseses/addresses/ in comments (and one missing whitespace). 2024-01-03 18:10:42 +00:00
uipc_syscalls.c fix PIPE_SOCKETPAIR variant of pipe1() to apply correctly the 'flags' 2024-02-03 19:05:14 +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 Tweak a couple of comments. 2023-10-02 21:50:18 +00:00
vfs_cwd.c Repply this change with a couple of bugs fixed: 2023-09-23 18:21:11 +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 Repply this change with a couple of bugs fixed: 2023-09-23 18:21:11 +00:00
vfs_lockf.c Repply this change with a couple of bugs fixed: 2023-09-23 18:21:11 +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 dounmount: Avoid &((struct vnode_impl *)NULL)->vi_vnode. 2024-04-19 00:45:41 +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 do_sys_accessat(): copy credentials only when needed. 2023-09-09 18:34:44 +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 Restore kpause() accidentially removed with last commit. 2023-11-27 16:13:59 +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 s/of of/of/ in comment. 2024-05-13 00:01:52 +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