freebsd-nq/sys/kern
Brooks Davis 562894f0dc Centralize compatability translation macros.
Copy the CP, PTRIN, etc macros from freebsd32.h into a sys/abi_compat.h
and replace existing definitation with includes where required. This
eliminates duplicate code and allows Linux and FreeBSD compatability
headers to be included in the same files.

Input from:	cem, jhb
Obtained from:	CheriBSD
MFC after:	2 weeks
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D24275
2020-04-14 20:30:48 +00:00
..
bus_if.m Remove trailing white space. 2020-02-26 16:22:28 +00:00
capabilities.conf Implement a close_range(2) syscall 2020-04-12 21:23:19 +00:00
clock_if.m
cpufreq_if.m
device_if.m
genassym.sh
genoffset.c
genoffset.sh
imgact_aout.c
imgact_binmisc.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
imgact_elf32.c
imgact_elf64.c
imgact_elf.c Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
imgact_shell.c
init_main.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
init_sysent.c sysent: re-roll after r359930 2020-04-14 18:11:26 +00:00
kern_acct.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_alq.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
kern_clock.c deadlkres: include thread name in panic messages 2020-04-01 04:51:39 +00:00
kern_clocksource.c
kern_condvar.c
kern_conf.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
kern_cons.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_context.c
kern_cpu.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_cpuset.c
kern_ctf.c
kern_descrip.c Mark closefrom(2) COMPAT12, reimplement in libc to wrap close_range 2020-04-14 18:07:42 +00:00
kern_dtrace.c
kern_dump.c
kern_environment.c
kern_et.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_event.c kqueue: use new capsicum helpers 2020-02-15 01:30:13 +00:00
kern_exec.c Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
kern_exit.c Remove the old NFS lock device driver that uses Giant. 2020-04-09 14:44:46 +00:00
kern_fail.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_ffclock.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_fork.c Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
kern_hhook.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
kern_idle.c
kern_intr.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_jail.c kern_jail: missing \0 termination check on osrelease parameter 2020-03-14 14:04:55 +00:00
kern_kcov.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_khelp.c
kern_kthread.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
kern_ktr.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_ktrace.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_linker.c fd: use smr for managing struct pwd 2020-03-08 00:23:36 +00:00
kern_lock.c When running with a kernel compiled with DEBUG_LOCKS, before 2020-04-09 23:42:13 +00:00
kern_lockf.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
kern_lockstat.c
kern_loginclass.c
kern_malloc.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_mbuf.c KTLS: Re-work unmapped mbufs to carry ext_pgs in the mbuf itself. 2020-04-14 14:46:06 +00:00
kern_mib.c Implement sysctl kern.boot_id 2020-03-17 22:27:16 +00:00
kern_module.c
kern_mtxpool.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
kern_mutex.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_ntptime.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_osd.c
kern_physio.c
kern_pmc.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_poll.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_priv.c Partially decompose priv_check by adding priv_check_cred_vfs_generation 2020-02-13 22:22:15 +00:00
kern_proc.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_procctl.c
kern_prot.c Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
kern_racct.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_rangelock.c
kern_rctl.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (1 of many) 2020-02-15 18:48:38 +00:00
kern_resource.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
kern_rmlock.c rms: use smp_rendezvous_cpus_retry instead of a hand-rolled variant 2020-02-12 11:17:18 +00:00
kern_rwlock.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_sdt.c
kern_sema.c
kern_sendfile.c KTLS: Re-work unmapped mbufs to carry ext_pgs in the mbuf itself. 2020-04-14 14:46:06 +00:00
kern_sharedpage.c
kern_shutdown.c kern_shutdown: Add missing EKCD ifdef 2020-03-12 21:26:36 +00:00
kern_sig.c Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
kern_switch.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_sx.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_synch.c sys/: Document few more sysctls. 2020-03-02 15:30:52 +00:00
kern_syscalls.c
kern_sysctl.c Restore the behavior of allowing empty string in a string sysctl 2020-02-10 20:53:59 +00:00
kern_tc.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_thr.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
kern_thread.c Remove the old NFS lock device driver that uses Giant. 2020-04-09 14:44:46 +00:00
kern_time.c Remove unneeded assert for curproc. Simplify. 2020-02-04 21:02:08 +00:00
kern_timeout.c Remove misleading / redundant bzero in callout_callwheel_init 2020-03-16 22:25:25 +00:00
kern_tslog.c
kern_ubsan.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
kern_umtx.c sys/: Document few more sysctls. 2020-03-02 15:30:52 +00:00
kern_uuid.c
kern_xxx.c
ksched.c
link_elf_obj.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
link_elf.c [PowerPC][Book-E] Fix missing load base in elf_cpu_parse_dynamic(). 2020-03-18 02:58:18 +00:00
linker_if.m
Make.tags.inc
Makefile sys/kern sysent: re-add dependency on capabilities.conf 2020-02-12 19:06:34 +00:00
makesyscalls.sh
md4c.c
md5c.c
msi_if.m
p1003_1b.c
pic_if.m
posix4_mib.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
sched_4bsd.c sys/: Document few more sysctls. 2020-03-02 15:30:52 +00:00
sched_ule.c sys/: Document few more sysctls. 2020-03-02 15:30:52 +00:00
serdev_if.m
stack_protector.c
subr_acl_nfs4.c
subr_acl_posix1e.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
subr_atomic64.c
subr_autoconf.c
subr_blist.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
subr_boot.c
subr_bufring.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
subr_bus_dma.c KTLS: Re-work unmapped mbufs to carry ext_pgs in the mbuf itself. 2020-04-14 14:46:06 +00:00
subr_bus.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_busdma_bufalloc.c
subr_capability.c Remove unused SYSINIT macros for capability rights. 2020-03-26 15:02:37 +00:00
subr_clock.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
subr_compressor.c clamp kernel dump compression level when using gzip 2020-02-20 23:53:48 +00:00
subr_counter.c Add COUNTER_U64_SYSINIT() and COUNTER_U64_DEFINE_EARLY(). 2020-03-06 19:09:01 +00:00
subr_coverage.c kcov: remove no longer needed atomic_load_ptr casts 2020-02-14 23:18:03 +00:00
subr_csan.c Expand generic subword atomic primitives 2020-03-25 23:12:43 +00:00
subr_devmap.c
subr_devstat.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_disk.c
subr_dummy_vdso_tc.c
subr_early.c
subr_epoch.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_eventhandler.c
subr_fattime.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
subr_filter.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
subr_firmware.c
subr_gtaskqueue.c Remove the "config" taskqgroup and its KPIs. 2020-03-30 14:24:03 +00:00
subr_hash.c
subr_hints.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
subr_intr.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
subr_kdb.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_kobj.c sys/: Document few more sysctls. 2020-03-02 15:30:52 +00:00
subr_lock.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_log.c
subr_mchain.c
subr_module.c
subr_msgbuf.c
subr_param.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_pcpu.c Add COUNTER_U64_SYSINIT() and COUNTER_U64_DEFINE_EARLY(). 2020-03-06 19:09:01 +00:00
subr_pctrie.c
subr_pidctrl.c
subr_power.c
subr_prf.c Add KERNEL_PANICKED macro for use in place of direct panicstr tests 2020-01-12 06:07:54 +00:00
subr_prof.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_rangeset.c
subr_rman.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_rtc.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_sbuf.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
subr_scanf.c
subr_sfbuf.c
subr_sglist.c KTLS: Re-work unmapped mbufs to carry ext_pgs in the mbuf itself. 2020-04-14 14:46:06 +00:00
subr_sleepqueue.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_smp.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_smr.c Use COUNTER_U64_DEFINE_EARLY() in places where it simplifies things. 2020-03-06 19:10:00 +00:00
subr_stack.c
subr_stats.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
subr_syscall.c Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
subr_taskqueue.c Add flag to struct task to mark the task as requiring network epoch. 2020-02-11 18:48:07 +00:00
subr_terminal.c
subr_trap.c Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
subr_turnstile.c ddb(4): show lockchain: Don't dereference LK_KERNPROC 2020-04-02 20:47:51 +00:00
subr_uio.c Remove sparc64 kernel support 2020-02-03 17:35:11 +00:00
subr_unit.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
subr_vmem.c Eliminate some unnecessary uses of UMA_ZONE_VM. Only zones involved in 2020-02-19 08:17:27 +00:00
subr_witness.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
sys_capability.c Enter a write sequence when updating rights. 2020-03-19 15:39:45 +00:00
sys_generic.c fd: remove the seq argument from fget_unlocked 2020-02-03 22:27:55 +00:00
sys_getrandom.c Fix a typo in r356667 comment 2020-01-12 23:52:16 +00:00
sys_pipe.c pipe: explain why not deallocating inode number is fine. 2020-03-09 23:40:25 +00:00
sys_procdesc.c
sys_process.c Retire procfs-based process debugging. 2020-04-01 19:22:09 +00:00
sys_socket.c Lock the socket in soo_stat(). 2020-03-20 20:09:00 +00:00
syscalls.c sysent: re-roll after r359930 2020-04-14 18:11:26 +00:00
syscalls.master Mark closefrom(2) COMPAT12, reimplement in libc to wrap close_range 2020-04-14 18:07:42 +00:00
systrace_args.c sysent: re-roll after r359930 2020-04-14 18:11:26 +00:00
sysv_ipc.c
sysv_msg.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
sysv_sem.c Centralize compatability translation macros. 2020-04-14 20:30:48 +00:00
sysv_shm.c Centralize compatability translation macros. 2020-04-14 20:30:48 +00:00
tty_compat.c
tty_info.c Reimplement stack capture of running threads on i386 and amd64. 2020-01-31 15:43:33 +00:00
tty_inq.c
tty_outq.c
tty_pts.c
tty_tty.c
tty_ttydisc.c
tty.c fd: remove the seq argument from fget_unlocked 2020-02-03 22:27:55 +00:00
uipc_accf.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
uipc_debug.c
uipc_domain.c - Move global network epoch definition to epoch.h, as more different 2020-01-15 03:34:21 +00:00
uipc_ktls.c KTLS: Re-work unmapped mbufs to carry ext_pgs in the mbuf itself. 2020-04-14 14:46:06 +00:00
uipc_mbuf2.c
uipc_mbuf.c KTLS: Re-work unmapped mbufs to carry ext_pgs in the mbuf itself. 2020-04-14 14:46:06 +00:00
uipc_mbufhash.c
uipc_mqueue.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
uipc_sem.c
uipc_shm.c posixshm: fix counting of writable mappings 2020-04-14 13:32:03 +00:00
uipc_sockbuf.c KTLS: Re-work unmapped mbufs to carry ext_pgs in the mbuf itself. 2020-04-14 14:46:06 +00:00
uipc_socket.c Make sonewconn() overflow messages have per-socket rate-limits and values. 2020-04-14 15:38:18 +00:00
uipc_syscalls.c
uipc_usrreq.c Fix sendto() on unconnected SOCK_STREAM/SEQPACKET unix sockets. 2020-04-13 19:22:05 +00:00
vfs_acl.c vfs: use new capsicum helpers 2020-02-15 01:28:42 +00:00
vfs_aio.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
vfs_bio.c buffer pager: skip bogus pages. 2020-03-30 21:42:46 +00:00
vfs_cache.c Use COUNTER_U64_DEFINE_EARLY() in places where it simplifies things. 2020-03-06 19:10:00 +00:00
vfs_cluster.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
vfs_default.c VOP_GETPAGES_ASYNC(): consistently call iodone() callback in case of error. 2020-03-30 21:44:30 +00:00
vfs_export.c
vfs_extattr.c vfs: use new capsicum helpers 2020-02-15 01:28:42 +00:00
vfs_hash.c vfs: incomplete pass at converting more ints to u_long 2020-01-11 22:56:20 +00:00
vfs_init.c Remove duplicated empty lines from kern/*.c 2020-01-30 20:05:05 +00:00
vfs_lookup.c vfs: stop taking additional refs on root vnode during lookup 2020-03-01 21:54:28 +00:00
vfs_mount.c Fix an NFS mount attempt where VFS_STATFS() fails. 2020-03-22 18:18:30 +00:00
vfs_mountroot.c fd: move vnodes out of filedesc into a dedicated structure 2020-03-01 21:53:46 +00:00
vfs_subr.c Add a new "mntfs" pseudo file system which provides private device vnodes for 2020-03-06 18:41:37 +00:00
vfs_syscalls.c kern_copy_file_range(): check the file type. 2020-03-24 17:16:52 +00:00
vfs_vnops.c Remove extra call to vfs_op_exit() from vfs_write_suspend() when VFS_SYNC() fails. 2020-04-09 18:38:00 +00:00
vnode_if.src vfs: quiet -Wwrite-strings 2020-02-23 03:32:11 +00:00