summaryrefslogtreecommitdiffstats
path: root/tools/rmtool
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-08 12:02:40 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-08 12:02:40 -0400
commitb232f7d82c699c4a1e922a0d045337d29dab824b (patch)
treeee8686f5014cf9724405184e813438c9882961b8 /tools/rmtool
parentb7d833672f95d00a0fe86cbaa1370e9a062cd363 (diff)
parentd380e5a46850000120b8745d50b5c167a4404fb1 (diff)
downloadopen-iov-b232f7d82c699c4a1e922a0d045337d29dab824b.tar.gz
open-iov-b232f7d82c699c4a1e922a0d045337d29dab824b.zip
merge ws/code-standards: editorconfig/clang-format, userspace style doc, SPDX sweep, conventions (handoff-code-standards.txt)
Diffstat (limited to 'tools/rmtool')
-rw-r--r--tools/rmtool/include/rm_api.h2
-rw-r--r--tools/rmtool/include/rmtool.h2
-rw-r--r--tools/rmtool/src/engine.c2
-rw-r--r--tools/rmtool/src/gpu.c2
-rw-r--r--tools/rmtool/src/main.c2
-rw-r--r--tools/rmtool/src/mem.c2
-rw-r--r--tools/rmtool/src/nv2080.c2
-rw-r--r--tools/rmtool/src/output.c2
-rw-r--r--tools/rmtool/src/query.c2
-rw-r--r--tools/rmtool/src/rm_api.c2
10 files changed, 20 insertions, 0 deletions
diff --git a/tools/rmtool/include/rm_api.h b/tools/rmtool/include/rm_api.h
index 5d7f8cf..8358597 100644
--- a/tools/rmtool/include/rm_api.h
+++ b/tools/rmtool/include/rm_api.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2026 Open-IOV contributors */
/* rm_api.h - minimal self-contained NVIDIA RM userspace client.
*
* ABI and control IDs mirror the NV570 SDK (nvos.h, ctrl2080*.h) but the
diff --git a/tools/rmtool/include/rmtool.h b/tools/rmtool/include/rmtool.h
index 55166f8..76dd583 100644
--- a/tools/rmtool/include/rmtool.h
+++ b/tools/rmtool/include/rmtool.h
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: BSD-3-Clause */
+/* Copyright (c) 2026 Open-IOV contributors */
/* rmtool.h - internal shared declarations for rmtool commands and output. */
#ifndef RMTOOL_H
#define RMTOOL_H
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 <getopt.h>
#include <stdio.h>
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 <getopt.h>
#include <stdio.h>
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 <ctype.h>
#include <stdio.h>
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 <stdio.h>
#include <stdlib.h>
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