aboutsummaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2017-11-27 15:20:12 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2017-11-27 15:20:12 +0000
commit8a36da99deb0e19363ec04e4d3facd869c1028f5 (patch)
tree98ee347fbcff61e6f7d83ccd4e42262a17ae5164 /sys/kern
parent3728855a0f66545c4aa90dc0d478dc403bdfa667 (diff)
downloadsrc-8a36da99deb0e19363ec04e4d3facd869c1028f5.tar.gz
src-8a36da99deb0e19363ec04e4d3facd869c1028f5.zip
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/imgact_aout.c2
-rw-r--r--sys/kern/imgact_elf.c2
-rw-r--r--sys/kern/imgact_elf32.c2
-rw-r--r--sys/kern/imgact_elf64.c2
-rw-r--r--sys/kern/imgact_shell.c2
-rw-r--r--sys/kern/kern_alq.c2
-rw-r--r--sys/kern/kern_clocksource.c2
-rw-r--r--sys/kern/kern_condvar.c2
-rw-r--r--sys/kern/kern_conf.c2
-rw-r--r--sys/kern/kern_context.c2
-rw-r--r--sys/kern/kern_cpu.c2
-rw-r--r--sys/kern/kern_cpuset.c2
-rw-r--r--sys/kern/kern_ctf.c2
-rw-r--r--sys/kern/kern_dtrace.c2
-rw-r--r--sys/kern/kern_environment.c2
-rw-r--r--sys/kern/kern_et.c2
-rw-r--r--sys/kern/kern_event.c2
-rw-r--r--sys/kern/kern_exec.c2
-rw-r--r--sys/kern/kern_fail.c2
-rw-r--r--sys/kern/kern_ffclock.c2
-rw-r--r--sys/kern/kern_hhook.c2
-rw-r--r--sys/kern/kern_idle.c2
-rw-r--r--sys/kern/kern_intr.c2
-rw-r--r--sys/kern/kern_jail.c2
-rw-r--r--sys/kern/kern_khelp.c2
-rw-r--r--sys/kern/kern_kthread.c2
-rw-r--r--sys/kern/kern_ktr.c2
-rw-r--r--sys/kern/kern_linker.c2
-rw-r--r--sys/kern/kern_lock.c2
-rw-r--r--sys/kern/kern_lockstat.c2
-rw-r--r--sys/kern/kern_loginclass.c2
-rw-r--r--sys/kern/kern_mbuf.c2
-rw-r--r--sys/kern/kern_module.c2
-rw-r--r--sys/kern/kern_mtxpool.c2
-rw-r--r--sys/kern/kern_mutex.c2
-rw-r--r--sys/kern/kern_osd.c2
-rw-r--r--sys/kern/kern_physio.c2
-rw-r--r--sys/kern/kern_pmc.c2
-rw-r--r--sys/kern/kern_poll.c2
-rw-r--r--sys/kern/kern_priv.c2
-rw-r--r--sys/kern/kern_racct.c2
-rw-r--r--sys/kern/kern_rangelock.c2
-rw-r--r--sys/kern/kern_rctl.c2
-rw-r--r--sys/kern/kern_rwlock.c2
-rw-r--r--sys/kern/kern_sdt.c2
-rw-r--r--sys/kern/kern_sema.c2
-rw-r--r--sys/kern/kern_sharedpage.c2
-rw-r--r--sys/kern/kern_switch.c2
-rw-r--r--sys/kern/kern_sx.c2
-rw-r--r--sys/kern/kern_syscalls.c2
-rw-r--r--sys/kern/kern_thr.c2
-rw-r--r--sys/kern/kern_thread.c2
-rw-r--r--sys/kern/kern_umtx.c2
-rw-r--r--sys/kern/kern_uuid.c2
-rw-r--r--sys/kern/link_elf.c2
-rw-r--r--sys/kern/link_elf_obj.c2
-rw-r--r--sys/kern/sched_ule.c2
-rw-r--r--sys/kern/subr_acl_nfs4.c2
-rw-r--r--sys/kern/subr_acl_posix1e.c2
-rw-r--r--sys/kern/subr_bufring.c2
-rw-r--r--sys/kern/subr_bus.c2
-rw-r--r--sys/kern/subr_bus_dma.c2
-rw-r--r--sys/kern/subr_busdma_bufalloc.c2
-rw-r--r--sys/kern/subr_capability.c2
-rw-r--r--sys/kern/subr_counter.c2
-rw-r--r--sys/kern/subr_devstat.c2
-rw-r--r--sys/kern/subr_dummy_vdso_tc.c2
-rw-r--r--sys/kern/subr_eventhandler.c2
-rw-r--r--sys/kern/subr_fattime.c2
-rw-r--r--sys/kern/subr_firmware.c2
-rw-r--r--sys/kern/subr_hints.c2
-rw-r--r--sys/kern/subr_kdb.c2
-rw-r--r--sys/kern/subr_kobj.c2
-rw-r--r--sys/kern/subr_lock.c2
-rw-r--r--sys/kern/subr_module.c2
-rw-r--r--sys/kern/subr_msgbuf.c2
-rw-r--r--sys/kern/subr_pctrie.c4
-rw-r--r--sys/kern/subr_power.c2
-rw-r--r--sys/kern/subr_sbuf.c2
-rw-r--r--sys/kern/subr_sleepqueue.c2
-rw-r--r--sys/kern/subr_smp.c2
-rw-r--r--sys/kern/subr_stack.c2
-rw-r--r--sys/kern/subr_taskqueue.c2
-rw-r--r--sys/kern/subr_terminal.c2
-rw-r--r--sys/kern/subr_turnstile.c2
-rw-r--r--sys/kern/subr_unit.c2
-rw-r--r--sys/kern/subr_vmem.c2
-rw-r--r--sys/kern/subr_witness.c2
-rw-r--r--sys/kern/sys_capability.c2
-rw-r--r--sys/kern/sys_pipe.c2
-rw-r--r--sys/kern/sys_procdesc.c2
-rw-r--r--sys/kern/sys_process.c2
-rw-r--r--sys/kern/sysv_ipc.c2
-rw-r--r--sys/kern/sysv_msg.c2
-rw-r--r--sys/kern/sysv_sem.c2
-rw-r--r--sys/kern/sysv_shm.c2
-rw-r--r--sys/kern/tty.c2
-rw-r--r--sys/kern/tty_inq.c2
-rw-r--r--sys/kern/tty_outq.c2
-rw-r--r--sys/kern/tty_pts.c2
-rw-r--r--sys/kern/tty_tty.c2
-rw-r--r--sys/kern/tty_ttydisc.c2
-rw-r--r--sys/kern/uipc_accf.c2
-rw-r--r--sys/kern/uipc_debug.c2
-rw-r--r--sys/kern/uipc_mqueue.c2
-rw-r--r--sys/kern/uipc_sem.c2
-rw-r--r--sys/kern/uipc_shm.c2
-rw-r--r--sys/kern/vfs_acl.c2
-rw-r--r--sys/kern/vfs_aio.c2
-rw-r--r--sys/kern/vfs_bio.c2
-rw-r--r--sys/kern/vfs_extattr.c2
-rw-r--r--sys/kern/vfs_hash.c2
112 files changed, 225 insertions, 1 deletions
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index cbde46b5acdc..f2633a8b9d93 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1993, David Greenman
* All rights reserved.
*
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
index 8ff3d58c1af2..bec8e9d9ef97 100644
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Copyright (c) 2017 Dell EMC
* Copyright (c) 2000 David O'Brien
* Copyright (c) 1995-1996 Søren Schmidt
diff --git a/sys/kern/imgact_elf32.c b/sys/kern/imgact_elf32.c
index b286f315e1ba..a25022e6f66d 100644
--- a/sys/kern/imgact_elf32.c
+++ b/sys/kern/imgact_elf32.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2002 Doug Rabson
* All rights reserved.
*
diff --git a/sys/kern/imgact_elf64.c b/sys/kern/imgact_elf64.c
index db2470dd915a..3c1181ff9a5c 100644
--- a/sys/kern/imgact_elf64.c
+++ b/sys/kern/imgact_elf64.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2002 Doug Rabson
* All rights reserved.
*
diff --git a/sys/kern/imgact_shell.c b/sys/kern/imgact_shell.c
index bc21714aab29..931318b34f87 100644
--- a/sys/kern/imgact_shell.c
+++ b/sys/kern/imgact_shell.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1993, David Greenman
* All rights reserved.
*
diff --git a/sys/kern/kern_alq.c b/sys/kern/kern_alq.c
index 21508d2cdfe1..038540b2ed18 100644
--- a/sys/kern/kern_alq.c
+++ b/sys/kern/kern_alq.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2002, Jeffrey Roberson <jeff@freebsd.org>
* Copyright (c) 2008-2009, Lawrence Stewart <lstewart@freebsd.org>
* Copyright (c) 2009-2010, The FreeBSD Foundation
diff --git a/sys/kern/kern_clocksource.c b/sys/kern/kern_clocksource.c
index b7d8bb916856..b85772e7b609 100644
--- a/sys/kern/kern_clocksource.c
+++ b/sys/kern/kern_clocksource.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2010-2013 Alexander Motin <mav@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_condvar.c b/sys/kern/kern_condvar.c
index 98f7ae0b40c4..e26b689b4e11 100644
--- a/sys/kern/kern_condvar.c
+++ b/sys/kern/kern_condvar.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2000 Jake Burkholder <jake@freebsd.org>.
* All rights reserved.
*
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index ea68a6dea9a8..66591f897289 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1999-2002 Poul-Henning Kamp
* All rights reserved.
*
diff --git a/sys/kern/kern_context.c b/sys/kern/kern_context.c
index 70751d02cba8..5afb371bfb27 100644
--- a/sys/kern/kern_context.c
+++ b/sys/kern/kern_context.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2002 Daniel M. Eischen <deischen@freebsd.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_cpu.c b/sys/kern/kern_cpu.c
index 4e66b139f962..193054a4f709 100644
--- a/sys/kern/kern_cpu.c
+++ b/sys/kern/kern_cpu.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2004-2007 Nate Lawson (SDG)
* All rights reserved.
*
diff --git a/sys/kern/kern_cpuset.c b/sys/kern/kern_cpuset.c
index f16085bfbb4a..c913647cda2c 100644
--- a/sys/kern/kern_cpuset.c
+++ b/sys/kern/kern_cpuset.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2008, Jeffrey Roberson <jeff@freebsd.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_ctf.c b/sys/kern/kern_ctf.c
index a2509f08c3ff..1a63dc5ba31c 100644
--- a/sys/kern/kern_ctf.c
+++ b/sys/kern/kern_ctf.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2008 John Birrell <jb@freebsd.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_dtrace.c b/sys/kern/kern_dtrace.c
index adc36a8e3a80..7b13a52b3f3b 100644
--- a/sys/kern/kern_dtrace.c
+++ b/sys/kern/kern_dtrace.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2007-2008 John Birrell <jb@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_environment.c b/sys/kern/kern_environment.c
index c05c063efd57..3d8cc0aa6b8d 100644
--- a/sys/kern/kern_environment.c
+++ b/sys/kern/kern_environment.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1998 Michael Smith
* All rights reserved.
*
diff --git a/sys/kern/kern_et.c b/sys/kern/kern_et.c
index 3d25d697ccc5..2cfeb07f94ee 100644
--- a/sys/kern/kern_et.c
+++ b/sys/kern/kern_et.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2010-2013 Alexander Motin <mav@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index 1fe36ce99be8..84ae66b75554 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
* Copyright 2004 John-Mark Gurney <jmg@FreeBSD.org>
* Copyright (c) 2009 Apple, Inc.
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 284e08a801af..035cea0cab00 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1993, David Greenman
* All rights reserved.
*
diff --git a/sys/kern/kern_fail.c b/sys/kern/kern_fail.c
index c53cb68cdd10..976a39ba8e28 100644
--- a/sys/kern/kern_fail.c
+++ b/sys/kern/kern_fail.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2009 Isilon Inc http://www.isilon.com/
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/kern_ffclock.c b/sys/kern/kern_ffclock.c
index d9101e8eeda4..8195530cbbdc 100644
--- a/sys/kern/kern_ffclock.c
+++ b/sys/kern/kern_ffclock.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2011 The University of Melbourne
* All rights reserved.
*
diff --git a/sys/kern/kern_hhook.c b/sys/kern/kern_hhook.c
index 85168fcac8b1..334de1f2ac7b 100644
--- a/sys/kern/kern_hhook.c
+++ b/sys/kern/kern_hhook.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2010,2013 Lawrence Stewart <lstewart@freebsd.org>
* Copyright (c) 2010 The FreeBSD Foundation
* All rights reserved.
diff --git a/sys/kern/kern_idle.c b/sys/kern/kern_idle.c
index f412d17f6cc8..100900d1ae9e 100644
--- a/sys/kern/kern_idle.c
+++ b/sys/kern/kern_idle.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (C) 2000-2004 The FreeBSD Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
index 95eff38f0569..8aa982c8e114 100644
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1997, Stefan Esser <se@freebsd.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
index d6afe8d42a84..a729816ec4f7 100644
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1999 Poul-Henning Kamp.
* Copyright (c) 2008 Bjoern A. Zeeb.
* Copyright (c) 2009 James Gritton.
diff --git a/sys/kern/kern_khelp.c b/sys/kern/kern_khelp.c
index 50751e9b529b..4f8a4248ec25 100644
--- a/sys/kern/kern_khelp.c
+++ b/sys/kern/kern_khelp.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2010,2013 Lawrence Stewart <lstewart@freebsd.org>
* Copyright (c) 2010 The FreeBSD Foundation
* All rights reserved.
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index 04f3423fb958..05762cdae7dc 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1999 Peter Wemm <peter@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_ktr.c b/sys/kern/kern_ktr.c
index be54d705cde7..6f4e67fc783a 100644
--- a/sys/kern/kern_ktr.c
+++ b/sys/kern/kern_ktr.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2000 John Baldwin <jhb@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_linker.c b/sys/kern/kern_linker.c
index e6ea73190e8f..35efc5aeb436 100644
--- a/sys/kern/kern_linker.c
+++ b/sys/kern/kern_linker.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1997-2000 Doug Rabson
* All rights reserved.
*
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 66df268186b3..14a5a5d1cd2e 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2008 Attilio Rao <attilio@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_lockstat.c b/sys/kern/kern_lockstat.c
index 77e55263f23e..99f1763bc4bc 100644
--- a/sys/kern/kern_lockstat.c
+++ b/sys/kern/kern_lockstat.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright 2008-2009 Stacey Son <sson@FreeBSD.org>
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/kern_loginclass.c b/sys/kern/kern_loginclass.c
index d74dd6553698..5d916062504c 100644
--- a/sys/kern/kern_loginclass.c
+++ b/sys/kern/kern_loginclass.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2011 The FreeBSD Foundation
* All rights reserved.
*
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c
index 718c141ec383..a1ab9229bd1e 100644
--- a/sys/kern/kern_mbuf.c
+++ b/sys/kern/kern_mbuf.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2004, 2005,
* Bosko Milekic <bmilekic@FreeBSD.org>. All rights reserved.
*
diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c
index 479345e43f74..546a57a5d8c2 100644
--- a/sys/kern/kern_module.c
+++ b/sys/kern/kern_module.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1997 Doug Rabson
* All rights reserved.
*
diff --git a/sys/kern/kern_mtxpool.c b/sys/kern/kern_mtxpool.c
index 90bf8e762853..c220f3ef4cda 100644
--- a/sys/kern/kern_mtxpool.c
+++ b/sys/kern/kern_mtxpool.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2001 Matthew Dillon. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 9a1647c2341e..e7985b4a4c5e 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Copyright (c) 1998 Berkeley Software Design, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/kern_osd.c b/sys/kern/kern_osd.c
index 8dd29f8079eb..e15ffde5d7bc 100644
--- a/sys/kern/kern_osd.c
+++ b/sys/kern/kern_osd.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2007 Pawel Jakub Dawidek <pjd@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c
index 31d8f1660fe7..b71951c162bd 100644
--- a/sys/kern/kern_physio.c
+++ b/sys/kern/kern_physio.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-4-Clause
+ *
* Copyright (c) 1994 John S. Dyson
* All rights reserved.
*
diff --git a/sys/kern/kern_pmc.c b/sys/kern/kern_pmc.c
index 12695f55c1ea..1694294f9e39 100644
--- a/sys/kern/kern_pmc.c
+++ b/sys/kern/kern_pmc.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2003-2008 Joseph Koshy
* Copyright (c) 2007 The FreeBSD Foundation
* All rights reserved.
diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c
index 5aa12f05edd1..f7ff32663464 100644
--- a/sys/kern/kern_poll.c
+++ b/sys/kern/kern_poll.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2001-2002 Luigi Rizzo
*
* Supported by: the Xorp Project (www.xorp.org)
diff --git a/sys/kern/kern_priv.c b/sys/kern/kern_priv.c
index 4b9a4443de3a..e538daada2b4 100644
--- a/sys/kern/kern_priv.c
+++ b/sys/kern/kern_priv.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2006 nCircle Network Security, Inc.
* Copyright (c) 2009 Robert N. M. Watson
* All rights reserved.
diff --git a/sys/kern/kern_racct.c b/sys/kern/kern_racct.c
index 5dbeae995635..0081d4b0424d 100644
--- a/sys/kern/kern_racct.c
+++ b/sys/kern/kern_racct.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2010 The FreeBSD Foundation
* All rights reserved.
*
diff --git a/sys/kern/kern_rangelock.c b/sys/kern/kern_rangelock.c
index 1c0faa3c0685..35bd6e864d37 100644
--- a/sys/kern/kern_rangelock.c
+++ b/sys/kern/kern_rangelock.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2009 Konstantin Belousov <kib@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_rctl.c b/sys/kern/kern_rctl.c
index e4a6b9753e4a..9ea18e815327 100644
--- a/sys/kern/kern_rctl.c
+++ b/sys/kern/kern_rctl.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2010 The FreeBSD Foundation
* All rights reserved.
*
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c
index dd9823515a72..70a8cdd3681c 100644
--- a/sys/kern/kern_rwlock.c
+++ b/sys/kern/kern_rwlock.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2006 John Baldwin <jhb@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_sdt.c b/sys/kern/kern_sdt.c
index ebbf04e46c82..a46d21c1c548 100644
--- a/sys/kern/kern_sdt.c
+++ b/sys/kern/kern_sdt.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright 2006-2008 John Birrell <jb@FreeBSD.org>
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/kern_sema.c b/sys/kern/kern_sema.c
index f09099e4b2e0..62678f4faf64 100644
--- a/sys/kern/kern_sema.c
+++ b/sys/kern/kern_sema.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (C) 2001 Jason Evans <jasone@freebsd.org>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/kern_sharedpage.c b/sys/kern/kern_sharedpage.c
index 750147242bd2..ced0bf8ac8a2 100644
--- a/sys/kern/kern_sharedpage.c
+++ b/sys/kern/kern_sharedpage.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2010, 2012 Konstantin Belousov <kib@FreeBSD.org>
* Copyright (c) 2015 The FreeBSD Foundation
* All rights reserved.
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c
index 2cdec8d930f9..ea2791673edf 100644
--- a/sys/kern/kern_switch.c
+++ b/sys/kern/kern_switch.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2001 Jake Burkholder <jake@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c
index 13af3897db2b..84ffb6090536 100644
--- a/sys/kern/kern_sx.c
+++ b/sys/kern/kern_sx.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2007 Attilio Rao <attilio@freebsd.org>
* Copyright (c) 2001 Jason Evans <jasone@freebsd.org>
* All rights reserved.
diff --git a/sys/kern/kern_syscalls.c b/sys/kern/kern_syscalls.c
index 15574beb45c5..756a83e229d9 100644
--- a/sys/kern/kern_syscalls.c
+++ b/sys/kern/kern_syscalls.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1999 Assar Westerlund
* All rights reserved.
*
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
index f352cd6736c2..28ef5242e437 100644
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2003, Jeffrey Roberson <jeff@freebsd.org>
* All rights reserved.
*
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index 87a6c2e90d79..e932dcb9a545 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (C) 2001 Julian Elischer <julian@freebsd.org>.
* All rights reserved.
*
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index 58f37171718e..74e427d5e9c0 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2015, 2016 The FreeBSD Foundation
* Copyright (c) 2004, David Xu <davidxu@freebsd.org>
* Copyright (c) 2002, Jeffrey Roberson <jeff@freebsd.org>
diff --git a/sys/kern/kern_uuid.c b/sys/kern/kern_uuid.c
index dd3fbae7cbee..006558e9e50c 100644
--- a/sys/kern/kern_uuid.c
+++ b/sys/kern/kern_uuid.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2002 Marcel Moolenaar
* All rights reserved.
*
diff --git a/sys/kern/link_elf.c b/sys/kern/link_elf.c
index 349a95ef06c9..f645ceb88d85 100644
--- a/sys/kern/link_elf.c
+++ b/sys/kern/link_elf.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1998-2000 Doug Rabson
* All rights reserved.
*
diff --git a/sys/kern/link_elf_obj.c b/sys/kern/link_elf_obj.c
index ede5ee905ac7..358f0e87dab1 100644
--- a/sys/kern/link_elf_obj.c
+++ b/sys/kern/link_elf_obj.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1998-2000 Doug Rabson
* Copyright (c) 2004 Peter Wemm
* All rights reserved.
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 7d8205c80414..5c8bae5afa1b 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2002-2007, Jeffrey Roberson <jeff@freebsd.org>
* All rights reserved.
*
diff --git a/sys/kern/subr_acl_nfs4.c b/sys/kern/subr_acl_nfs4.c
index 3e23579beba3..ed08bf3065a5 100644
--- a/sys/kern/subr_acl_nfs4.c
+++ b/sys/kern/subr_acl_nfs4.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2008-2010 Edward Tomasz Napierała <trasz@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/subr_acl_posix1e.c b/sys/kern/subr_acl_posix1e.c
index 32009321e794..1dcbea957bae 100644
--- a/sys/kern/subr_acl_posix1e.c
+++ b/sys/kern/subr_acl_posix1e.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1999-2006 Robert N. M. Watson
* All rights reserved.
*
diff --git a/sys/kern/subr_bufring.c b/sys/kern/subr_bufring.c
index 4cd39292622c..73590e49368b 100644
--- a/sys/kern/subr_bufring.c
+++ b/sys/kern/subr_bufring.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2007, 2008 Kip Macy <kmacy@freebsd.org>
* All rights reserved.
*
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index 8c5b975d2aaf..faaee4865771 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1997,1998,2003 Doug Rabson
* All rights reserved.
*
diff --git a/sys/kern/subr_bus_dma.c b/sys/kern/subr_bus_dma.c
index 05011222b090..01341bdcb311 100644
--- a/sys/kern/subr_bus_dma.c
+++ b/sys/kern/subr_bus_dma.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2012 EMC Corp.
* All rights reserved.
*
diff --git a/sys/kern/subr_busdma_bufalloc.c b/sys/kern/subr_busdma_bufalloc.c
index c8980e1a52d7..d035153c6dbd 100644
--- a/sys/kern/subr_busdma_bufalloc.c
+++ b/sys/kern/subr_busdma_bufalloc.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2012 Ian Lepore
* All rights reserved.
*
diff --git a/sys/kern/subr_capability.c b/sys/kern/subr_capability.c
index 683ca0d16b67..4e07cca23519 100644
--- a/sys/kern/subr_capability.c
+++ b/sys/kern/subr_capability.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2013 FreeBSD Foundation
* All rights reserved.
*
diff --git a/sys/kern/subr_counter.c b/sys/kern/subr_counter.c
index f0727f31d780..d53ea8e804aa 100644
--- a/sys/kern/subr_counter.c
+++ b/sys/kern/subr_counter.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2012 Gleb Smirnoff <glebius@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c
index 84a98d0f2462..11ef6589a2db 100644
--- a/sys/kern/subr_devstat.c
+++ b/sys/kern/subr_devstat.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Copyright (c) 1997, 1998, 1999 Kenneth D. Merry.
* All rights reserved.
*
diff --git a/sys/kern/subr_dummy_vdso_tc.c b/sys/kern/subr_dummy_vdso_tc.c
index d1c36b74ead0..79052abad594 100644
--- a/sys/kern/subr_dummy_vdso_tc.c
+++ b/sys/kern/subr_dummy_vdso_tc.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright 2012 Konstantin Belousov <kib@FreeBSD.ORG>.
* All rights reserved.
*
diff --git a/sys/kern/subr_eventhandler.c b/sys/kern/subr_eventhandler.c
index 7d7f481f16f2..60655df9019a 100644
--- a/sys/kern/subr_eventhandler.c
+++ b/sys/kern/subr_eventhandler.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1999 Michael Smith <msmith@freebsd.org>
* All rights reserved.
*
diff --git a/sys/kern/subr_fattime.c b/sys/kern/subr_fattime.c
index 099479c9c6cc..41ea0b21f628 100644
--- a/sys/kern/subr_fattime.c
+++ b/sys/kern/subr_fattime.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2006 Poul-Henning Kamp
* All rights reserved.
*
diff --git a/sys/kern/subr_firmware.c b/sys/kern/subr_firmware.c
index df720bd211e2..676991418648 100644
--- a/sys/kern/subr_firmware.c
+++ b/sys/kern/subr_firmware.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2005-2008, Sam Leffler <sam@errno.com>
* All rights reserved.
*
diff --git a/sys/kern/subr_hints.c b/sys/kern/subr_hints.c
index 00cfbf1bfb88..eeb74cfd6d8f 100644
--- a/sys/kern/subr_hints.c
+++ b/sys/kern/subr_hints.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2000,2001 Peter Wemm <peter@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/subr_kdb.c b/sys/kern/subr_kdb.c
index 249aab4b3471..ec168590e0e9 100644
--- a/sys/kern/subr_kdb.c
+++ b/sys/kern/subr_kdb.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2004 The FreeBSD Project
* All rights reserved.
*
diff --git a/sys/kern/subr_kobj.c b/sys/kern/subr_kobj.c
index 15a7b8ac35f7..1a68c8d5aef7 100644
--- a/sys/kern/subr_kobj.c
+++ b/sys/kern/subr_kobj.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2000,2003 Doug Rabson
* All rights reserved.
*
diff --git a/sys/kern/subr_lock.c b/sys/kern/subr_lock.c
index 8584525922fd..01b82fe23d48 100644
--- a/sys/kern/subr_lock.c
+++ b/sys/kern/subr_lock.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2006 John Baldwin <jhb@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/subr_module.c b/sys/kern/subr_module.c
index 5b0568f9ee5e..7a05f5f2d63b 100644
--- a/sys/kern/subr_module.c
+++ b/sys/kern/subr_module.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1998 Michael Smith
* All rights reserved.
*
diff --git a/sys/kern/subr_msgbuf.c b/sys/kern/subr_msgbuf.c
index f275aef3b4f9..0231fe074d59 100644
--- a/sys/kern/subr_msgbuf.c
+++ b/sys/kern/subr_msgbuf.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2003 Ian Dowse. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/subr_pctrie.c b/sys/kern/subr_pctrie.c
index e92d26cc94b5..c5f2c06e6e56 100644
--- a/sys/kern/subr_pctrie.c
+++ b/sys/kern/subr_pctrie.c
@@ -1,4 +1,6 @@
-/*
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2013 EMC Corp.
* Copyright (c) 2011 Jeffrey Roberson <jeff@freebsd.org>
* Copyright (c) 2008 Mayur Shardul <mayur.shardul@gmail.com>
diff --git a/sys/kern/subr_power.c b/sys/kern/subr_power.c
index ac6cd7194eca..7b7371f82f3e 100644
--- a/sys/kern/subr_power.c
+++ b/sys/kern/subr_power.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2001 Mitsuru IWASAKI
* All rights reserved.
*
diff --git a/sys/kern/subr_sbuf.c b/sys/kern/subr_sbuf.c
index bd58489a4e6e..deb83f5e035d 100644
--- a/sys/kern/subr_sbuf.c
+++ b/sys/kern/subr_sbuf.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2000-2008 Poul-Henning Kamp
* Copyright (c) 2000-2008 Dag-Erling Coïdan Smørgrav
* All rights reserved.
diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c
index 2195c98d77a4..c2ad80fd2541 100644
--- a/sys/kern/subr_sleepqueue.c
+++ b/sys/kern/subr_sleepqueue.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2004 John Baldwin <jhb@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
index 108705c98a25..1700cde7a7e8 100644
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2001, John Baldwin <jhb@FreeBSD.org>.
* All rights reserved.
*
diff --git a/sys/kern/subr_stack.c b/sys/kern/subr_stack.c
index eb155726f00c..0254c7f3fd07 100644
--- a/sys/kern/subr_stack.c
+++ b/sys/kern/subr_stack.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2005 Antoine Brodin
* All rights reserved.
*
diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c
index 0ec519df0d46..290a5c32d908 100644
--- a/sys/kern/subr_taskqueue.c
+++ b/sys/kern/subr_taskqueue.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2000 Doug Rabson
* All rights reserved.
*
diff --git a/sys/kern/subr_terminal.c b/sys/kern/subr_terminal.c
index 484408e980a3..fd5cb2673807 100644
--- a/sys/kern/subr_terminal.c
+++ b/sys/kern/subr_terminal.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2009 The FreeBSD Foundation
* All rights reserved.
*
diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c
index 1ffdc78f6f0e..f365ce99e9b5 100644
--- a/sys/kern/subr_turnstile.c
+++ b/sys/kern/subr_turnstile.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Copyright (c) 1998 Berkeley Software Design, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c
index 867edbe75460..f2eafad41175 100644
--- a/sys/kern/subr_unit.c
+++ b/sys/kern/subr_unit.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2004 Poul-Henning Kamp
* All rights reserved.
*
diff --git a/sys/kern/subr_vmem.c b/sys/kern/subr_vmem.c
index 4e3f04ed49b1..4dd4fb8eff1e 100644
--- a/sys/kern/subr_vmem.c
+++ b/sys/kern/subr_vmem.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c)2006,2007,2008,2009 YAMAMOTO Takashi,
* Copyright (c) 2013 EMC Corp.
* All rights reserved.
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 08385514d5d4..4959cf3dc616 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
* Copyright (c) 2008 Isilon Systems, Inc.
* Copyright (c) 2008 Ilya Maykov <ivmaykov@gmail.com>
* Copyright (c) 1998 Berkeley Software Design, Inc.
diff --git a/sys/kern/sys_capability.c b/sys/kern/sys_capability.c
index bf248f9a5dbb..e4b08db41bc7 100644
--- a/sys/kern/sys_capability.c
+++ b/sys/kern/sys_capability.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2008-2011 Robert N. M. Watson
* Copyright (c) 2010-2011 Jonathan Anderson
* Copyright (c) 2012 FreeBSD Foundation
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index 649f371d3610..469f5243635d 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-4-Clause
+ *
* Copyright (c) 1996 John S. Dyson
* Copyright (c) 2012 Giovanni Trematerra
* All rights reserved.
diff --git a/sys/kern/sys_procdesc.c b/sys/kern/sys_procdesc.c
index 5f2c9ec69805..5e8928cb1534 100644
--- a/sys/kern/sys_procdesc.c
+++ b/sys/kern/sys_procdesc.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2009, 2016 Robert N. M. Watson
* All rights reserved.
*
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index 9e6e1aa347b6..1e054c0c8a6d 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-4-Clause
+ *
* Copyright (c) 1994, Sean Eric Fagan
* All rights reserved.
*
diff --git a/sys/kern/sysv_ipc.c b/sys/kern/sysv_ipc.c
index e402cb5b01b8..789218e8bd4e 100644
--- a/sys/kern/sysv_ipc.c
+++ b/sys/kern/sysv_ipc.c
@@ -1,5 +1,7 @@
/* $NetBSD: sysv_ipc.c,v 1.7 1994/06/29 06:33:11 cgd Exp $ */
/*-
+ * SPDX-License-Identifier: BSD-4-Clause
+ *
* Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
* Copyright (c) 2006 nCircle Network Security, Inc.
* All rights reserved.
diff --git a/sys/kern/sysv_msg.c b/sys/kern/sysv_msg.c
index 207fb1f5d7bc..25a0156f86d0 100644
--- a/sys/kern/sysv_msg.c
+++ b/sys/kern/sysv_msg.c
@@ -17,6 +17,8 @@
* This software is provided ``AS IS'' without any warranties of any kind.
*/
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2003-2005 McAfee, Inc.
* Copyright (c) 2016-2017 Robert N. M. Watson
* All rights reserved.
diff --git a/sys/kern/sysv_sem.c b/sys/kern/sysv_sem.c
index 116fc437e4b9..fda8e56d4aaa 100644
--- a/sys/kern/sysv_sem.c
+++ b/sys/kern/sysv_sem.c
@@ -6,6 +6,8 @@
* This software is provided ``AS IS'' without any warranties of any kind.
*/
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2003-2005 McAfee, Inc.
* Copyright (c) 2016-2017 Robert N. M. Watson
* All rights reserved.
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c
index db7c4771c289..0541801ee09f 100644
--- a/sys/kern/sysv_shm.c
+++ b/sys/kern/sysv_shm.c
@@ -1,5 +1,7 @@
/* $NetBSD: sysv_shm.c,v 1.23 1994/07/04 23:25:12 glass Exp $ */
/*-
+ * SPDX-License-Identifier: BSD-4-Clause AND BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1994 Adam Glass and Charles Hannum. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 63e195945d89..1c37a2034175 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/tty_inq.c b/sys/kern/tty_inq.c
index 163b19459fe9..8ebec1422962 100644
--- a/sys/kern/tty_inq.c
+++ b/sys/kern/tty_inq.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/tty_outq.c b/sys/kern/tty_outq.c
index 3f86e11b9b30..0fd5810d0d38 100644
--- a/sys/kern/tty_outq.c
+++ b/sys/kern/tty_outq.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/tty_pts.c b/sys/kern/tty_pts.c
index b9a888c5a124..5bbef4280462 100644
--- a/sys/kern/tty_pts.c
+++ b/sys/kern/tty_pts.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/tty_tty.c b/sys/kern/tty_tty.c
index 582b41ab5863..b59efb6cb94b 100644
--- a/sys/kern/tty_tty.c
+++ b/sys/kern/tty_tty.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2003 Poul-Henning Kamp. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/tty_ttydisc.c b/sys/kern/tty_ttydisc.c
index 99fde3110705..a0798d0b54a0 100644
--- a/sys/kern/tty_ttydisc.c
+++ b/sys/kern/tty_ttydisc.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org>
* All rights reserved.
*
diff --git a/sys/kern/uipc_accf.c b/sys/kern/uipc_accf.c
index 6b29cb843aa0..9aab541883d6 100644
--- a/sys/kern/uipc_accf.c
+++ b/sys/kern/uipc_accf.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2000 Paycounter, Inc.
* Copyright (c) 2005 Robert N. M. Watson
* Author: Alfred Perlstein <alfred@paycounter.com>, <alfred@FreeBSD.org>
diff --git a/sys/kern/uipc_debug.c b/sys/kern/uipc_debug.c
index 96c4bbe4c272..7a4cf1cdb028 100644
--- a/sys/kern/uipc_debug.c
+++ b/sys/kern/uipc_debug.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2007 Robert N. M. Watson
* All rights reserved.
*
diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c
index f299858708c4..0cc7339b4486 100644
--- a/sys/kern/uipc_mqueue.c
+++ b/sys/kern/uipc_mqueue.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2005 David Xu <davidxu@freebsd.org>
* Copyright (c) 2016-2017 Robert N. M. Watson
* All rights reserved.
diff --git a/sys/kern/uipc_sem.c b/sys/kern/uipc_sem.c
index 9ff29f31006f..6133666bc4ea 100644
--- a/sys/kern/uipc_sem.c
+++ b/sys/kern/uipc_sem.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2002 Alfred Perlstein <alfred@FreeBSD.org>
* Copyright (c) 2003-2005 SPARTA, Inc.
* Copyright (c) 2005, 2016-2017 Robert N. M. Watson
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index c8e5f0d1ccd9..6f49011a6506 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2006, 2011, 2016-2017 Robert N. M. Watson
* All rights reserved.
*
diff --git a/sys/kern/vfs_acl.c b/sys/kern/vfs_acl.c
index c2d3088208d8..3c21ea4d7e22 100644
--- a/sys/kern/vfs_acl.c
+++ b/sys/kern/vfs_acl.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1999-2006, 2016-2017 Robert N. M. Watson
* All rights reserved.
*
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 33cf46e65e14..e34c2a96683f 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1997 John S. Dyson. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 4c223a828c1b..a9a915301abc 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2004 Poul-Henning Kamp
* Copyright (c) 1994,1997 John S. Dyson
* Copyright (c) 2013 The FreeBSD Foundation
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 0f82c2b1e49f..a18a61169bcc 100644
--- a/sys/kern/vfs_extattr.c
+++ b/sys/kern/vfs_extattr.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 1999-2001 Robert N. M. Watson
* All rights reserved.
*
diff --git a/sys/kern/vfs_hash.c b/sys/kern/vfs_hash.c
index a8e8052c6bb4..b938f4855541 100644
--- a/sys/kern/vfs_hash.c
+++ b/sys/kern/vfs_hash.c
@@ -1,4 +1,6 @@
/*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
* Copyright (c) 2005 Poul-Henning Kamp
* All rights reserved.
*