From 2ee4fe8f43b0dc3e080c91931eadade1fd636c27 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Thu, 8 Oct 2026 11:53:20 -0400 Subject: spdx: add BSD-3-Clause identifiers to userspace/tools/scripts sources Sweep of the 155 tracked C/Python/shell files under userspace/ (excluding the MIT-licensed vendored userspace/extern/), tools/ and scripts/ that had no per-file license identifier. Each gains the minimal two-line header in the area's existing form: 'SPDX-License-Identifier: BSD-3-Clause' plus 'Copyright (c) 2026 Open-IOV contributors'; shebang and coding lines stay first. No other content touched. kernel/** is deliberately out of scope (recorded as a follow-up in CODESTD-REPORT-2026-10-08.md): its SPDX coverage and MODULE_LICENSE normalization need their own GPL-2.0 pass. --- tools/rmtool/src/engine.c | 2 ++ tools/rmtool/src/gpu.c | 2 ++ tools/rmtool/src/main.c | 2 ++ tools/rmtool/src/mem.c | 2 ++ tools/rmtool/src/nv2080.c | 2 ++ tools/rmtool/src/output.c | 2 ++ tools/rmtool/src/query.c | 2 ++ tools/rmtool/src/rm_api.c | 2 ++ 8 files changed, 16 insertions(+) (limited to 'tools/rmtool/src') diff --git a/tools/rmtool/src/engine.c b/tools/rmtool/src/engine.c index c247e47..283856c 100644 --- a/tools/rmtool/src/engine.c +++ b/tools/rmtool/src/engine.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* engine.c - rmtool engine list/info via read-only GPU/engine controls. */ #include #include diff --git a/tools/rmtool/src/gpu.c b/tools/rmtool/src/gpu.c index ff9b26c..7db1353 100644 --- a/tools/rmtool/src/gpu.c +++ b/tools/rmtool/src/gpu.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* gpu.c - rmtool gpu list/topology/info: enumeration and identity queries. */ #include #include diff --git a/tools/rmtool/src/main.c b/tools/rmtool/src/main.c index 4e4b440..79a34bb 100644 --- a/tools/rmtool/src/main.c +++ b/tools/rmtool/src/main.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* main.c - rmtool entry point: command dispatch and global help/version. * * rmtool is a read-only host RM oracle for the Open-IOV accuracy loop. It diff --git a/tools/rmtool/src/mem.c b/tools/rmtool/src/mem.c index a85bd70..52a3e5a 100644 --- a/tools/rmtool/src/mem.c +++ b/tools/rmtool/src/mem.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* mem.c - rmtool mem stats: read-only FB/heap/BAR1 information. * * Allocation, mapping, pinning and arbitrary-handle inspection are diff --git a/tools/rmtool/src/nv2080.c b/tools/rmtool/src/nv2080.c index 5dd808e..0cf1cf1 100644 --- a/tools/rmtool/src/nv2080.c +++ b/tools/rmtool/src/nv2080.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* nv2080.c - rmtool nv2080 class list / method call and sample. * * The generic control entry point is restricted to a read-only allowlist so diff --git a/tools/rmtool/src/output.c b/tools/rmtool/src/output.c index 6de5d02..289256c 100644 --- a/tools/rmtool/src/output.c +++ b/tools/rmtool/src/output.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* output.c - table/JSON/CSV formatting helpers shared by rmtool commands. */ #include #include diff --git a/tools/rmtool/src/query.c b/tools/rmtool/src/query.c index c9a7460..37cf3f8 100644 --- a/tools/rmtool/src/query.c +++ b/tools/rmtool/src/query.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* query.c - shared read-only RM queries used by rmtool and rmtop. */ #include #include diff --git a/tools/rmtool/src/rm_api.c b/tools/rmtool/src/rm_api.c index 17fb48b..fd459cd 100644 --- a/tools/rmtool/src/rm_api.c +++ b/tools/rmtool/src/rm_api.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* rm_api.c - RM ioctl client, GPU discovery and control plumbing. * * The ioctl ladder (root -> device -> subdevice) and NV_ESC_RM_CONTROL -- cgit v1.2.3