Add management mode to CDI spec generation API

These changes add support for generating a management spec to the nvcdi API.
A management spec consists of a single CDI device (`all`) which includes all expected
NVIDIA device nodes, driver libraries, binaries, and IPC sockets.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2023-03-01 12:16:38 +02:00
parent 64b16acb1f
commit 29cbbe83f9
4 changed files with 193 additions and 0 deletions

View File

@@ -30,6 +30,8 @@ const (
ModeNvml = "nvml"
// ModeWsl configures the CDI spec generator to generate a WSL spec.
ModeWsl = "wsl"
// ModeManagement configures the CDI spec generator to generate a management spec.
ModeManagement = "management"
)
// Interface defines the API for the nvcdi package