Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Option ¶
type Option func(*nvpassthrough)
Option defines a function for passing options to the New() call.
func WithHostRoot ¶
WithHostRoot provides an Option to set the path to the host root filesystem. The path is only used when the WithLoadKernelModules option is also enabled. The path is assumed to be a chroot-able filesystem.
func WithLoadKernelModules ¶
WithLoadKernelModules provides an Option for opting-in to loading kernel modules before binding NVIDIA PCI devices to them. By default, this behavior is disabled.
func WithLogger ¶
func WithLogger(logger basicLogger) Option
WithLogger provides an Option to set the logger for the library.
func WithNvpciLib ¶
WithNvpciLib provides an Option to set the nvpci lib used.
Click to show internal directories.
Click to hide internal directories.