Add imex mode to CDI spec generation

This change adds a imex mode to CDI spec generation. This mode detected
generates CDI specifications for existing IMEX channels. By default these
devices have the fully qualified CDI device names:

nvidia.com/imex-channel=<ID>

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2024-11-21 14:48:32 +01:00
parent e1efa28fe6
commit 8603d605aa
8 changed files with 211 additions and 0 deletions

View File

@@ -40,6 +40,8 @@ const (
// ModeCSV configures the CDI spec generator to generate a spec based on the contents of CSV
// mountspec files.
ModeCSV = Mode("csv")
// ModeImex configures the CDI spec generated to generate a spec for the available IMEX channels.
ModeImex = Mode("imex")
)
type modeConstraint interface {