diff options
Diffstat (limited to 'userspace')
| -rw-r--r-- | userspace/.clang-format | 18 | ||||
| -rw-r--r-- | userspace/examples/example_vgpu.c | 2 | ||||
| -rw-r--r-- | userspace/include/libvgpu.h | 2 | ||||
| -rw-r--r-- | userspace/lib/libvgpu.c | 2 | ||||
| -rw-r--r-- | userspace/lib/rpc_emulator.c | 2 | ||||
| -rw-r--r-- | userspace/lib/rpc_emulator.h | 2 | ||||
| -rw-r--r-- | userspace/tests/test_guest_init.c | 2 | ||||
| -rw-r--r-- | userspace/tests/test_host_init.c | 2 | ||||
| -rw-r--r-- | userspace/tests/test_vgpu_userspace.c | 2 |
9 files changed, 34 insertions, 0 deletions
diff --git a/userspace/.clang-format b/userspace/.clang-format new file mode 100644 index 0000000..e331ac6 --- /dev/null +++ b/userspace/.clang-format @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: BSD-3-Clause +# +# Userspace library style: LLVM base, 4-space indent, ~100 columns +# (see docs/07-developers/onboarding-and-standards.md 3.2). +# Existing files are NOT to be mass-reformatted; this config governs new +# code and hunks that are already being edited. +--- +Language: Cpp +BasedOnStyle: LLVM +AllowShortFunctionsOnASingleLine: Empty +BreakBeforeBraces: Attach +ColumnLimit: 100 +DerivePointerAlignment: false +IndentWidth: 4 +PointerAlignment: Right +SortIncludes: Never +TabWidth: 4 +UseTab: Never diff --git a/userspace/examples/example_vgpu.c b/userspace/examples/example_vgpu.c index ede6873..735f0b3 100644 --- a/userspace/examples/example_vgpu.c +++ b/userspace/examples/example_vgpu.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* * GSP vGPU-IO Example Application * Demonstrates basic VF creation, memory allocation, and BAR configuration diff --git a/userspace/include/libvgpu.h b/userspace/include/libvgpu.h index 7f6505b..33fbfb5 100644 --- a/userspace/include/libvgpu.h +++ b/userspace/include/libvgpu.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* * GSP vGPU-IO Userspace Library (libvgpu) * Simple C API for VF management and GPU operations diff --git a/userspace/lib/libvgpu.c b/userspace/lib/libvgpu.c index a25a228..bd27610 100644 --- a/userspace/lib/libvgpu.c +++ b/userspace/lib/libvgpu.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* * GSP vGPU-IO Userspace Library Implementation */ diff --git a/userspace/lib/rpc_emulator.c b/userspace/lib/rpc_emulator.c index 9f7f2c7..3a74b9c 100644 --- a/userspace/lib/rpc_emulator.c +++ b/userspace/lib/rpc_emulator.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* * GSP vGPU-IO Userspace RPC Emulator * diff --git a/userspace/lib/rpc_emulator.h b/userspace/lib/rpc_emulator.h index 1b641bf..35cb76e 100644 --- a/userspace/lib/rpc_emulator.h +++ b/userspace/lib/rpc_emulator.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* * GSP vGPU-IO Userspace RPC Emulator - Header */ diff --git a/userspace/tests/test_guest_init.c b/userspace/tests/test_guest_init.c index 135c16f..4148da6 100644 --- a/userspace/tests/test_guest_init.c +++ b/userspace/tests/test_guest_init.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* * Test for guest vGPU driver initialization * This test verifies that the guest vGPU driver can initialize properly diff --git a/userspace/tests/test_host_init.c b/userspace/tests/test_host_init.c index a08fe33..aa3ddbb 100644 --- a/userspace/tests/test_host_init.c +++ b/userspace/tests/test_host_init.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* * Test for host vGPU initialization */ diff --git a/userspace/tests/test_vgpu_userspace.c b/userspace/tests/test_vgpu_userspace.c index cd22111..5858dbe 100644 --- a/userspace/tests/test_vgpu_userspace.c +++ b/userspace/tests/test_vgpu_userspace.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* Copyright (c) 2026 Open-IOV contributors */ /* * GSP vGPU-IO Userspace Test * Tests VFIO interface and driver functionality from userspace |
