Documentation ¶
Overview ¶
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Copyright © 2024 Macaroni OS Linux See AUTHORS and LICENSE for the license details and contributors.
Index ¶
- Constants
- Variables
- type MacaroniBackend
- func (b *MacaroniBackend) ActiveNVIDIAKernelDriver(setup *specs.NVIDIASetup, nvidiaVersion string, kernelVersion string, ...) error
- func (b *MacaroniBackend) ConfigureGBMLinks(setup *specs.System, nvidiaVersion string, enabled bool) error
- func (b *MacaroniBackend) GetEglExternalPlatformsDirs() ([]string, error)
- func (b *MacaroniBackend) GetEnvironmentDir() string
- func (b *MacaroniBackend) GetGBMLibDir() string
- func (b *MacaroniBackend) GetNVIDIADriverActive() (string, error)
- func (b *MacaroniBackend) GetNVIDIADrivers() (*[]*specs.NVIDIADriver, error)
- func (b *MacaroniBackend) GetNVIDIAEglGbmLibDir() string
- func (b *MacaroniBackend) GetNVIDIAEglWaylandLibDir() string
- func (b *MacaroniBackend) GetNVIDIAKernelModules(open bool) (*[]*specs.KernelModule, error)
- func (b *MacaroniBackend) GetNVIDIAKernelModulesActive(open bool) (*[]*specs.KernelModule, error)
- func (b *MacaroniBackend) GetName() string
- func (b *MacaroniBackend) GetVulkanICDDirs() ([]string, error)
- func (b *MacaroniBackend) GetVulkanLayersDirs() ([]string, error)
- func (b *MacaroniBackend) PurgeGBMLinks(setup *specs.System, libs []string) error
- func (b *MacaroniBackend) PurgeNVIDIADriver(system *specs.System) error
- func (b *MacaroniBackend) PurgeNVIDIAKernelDriverActive(setup *specs.NVIDIASetup, nvidiaVersion, kernelVersion, driverType string) error
- func (b *MacaroniBackend) SetNVIDIAModprobeFiles(setup *specs.NVIDIASetup, withVideoGroup, force bool) error
- func (b *MacaroniBackend) SetNVIDIAVersion(config *specs.Config, system *specs.System, v string) error
Constants ¶
View Source
const ( NvidiaEnvFileName = "09nvidia" NvidiaPrefixDriverPath = "/opt/nvidia" )
Variables ¶
View Source
var (
KernelModuleSupportedCompression = []string{
".zst",
".xz",
}
)
Functions ¶
This section is empty.
Types ¶
type MacaroniBackend ¶
type MacaroniBackend struct {
Name string
}
func NewMacaroniBackend ¶
func NewMacaroniBackend() (*MacaroniBackend, error)
func (*MacaroniBackend) ActiveNVIDIAKernelDriver ¶ added in v0.2.0
func (b *MacaroniBackend) ActiveNVIDIAKernelDriver(setup *specs.NVIDIASetup, nvidiaVersion string, kernelVersion string, open bool) error
func (*MacaroniBackend) ConfigureGBMLinks ¶ added in v0.2.0
func (*MacaroniBackend) GetEglExternalPlatformsDirs ¶
func (b *MacaroniBackend) GetEglExternalPlatformsDirs() ([]string, error)
func (*MacaroniBackend) GetEnvironmentDir ¶
func (b *MacaroniBackend) GetEnvironmentDir() string
func (*MacaroniBackend) GetGBMLibDir ¶
func (b *MacaroniBackend) GetGBMLibDir() string
func (*MacaroniBackend) GetNVIDIADriverActive ¶ added in v0.2.0
func (b *MacaroniBackend) GetNVIDIADriverActive() (string, error)
func (*MacaroniBackend) GetNVIDIADrivers ¶
func (b *MacaroniBackend) GetNVIDIADrivers() (*[]*specs.NVIDIADriver, error)
func (*MacaroniBackend) GetNVIDIAEglGbmLibDir ¶
func (b *MacaroniBackend) GetNVIDIAEglGbmLibDir() string
func (*MacaroniBackend) GetNVIDIAEglWaylandLibDir ¶
func (b *MacaroniBackend) GetNVIDIAEglWaylandLibDir() string
func (*MacaroniBackend) GetNVIDIAKernelModules ¶
func (b *MacaroniBackend) GetNVIDIAKernelModules(open bool) (*[]*specs.KernelModule, error)
func (*MacaroniBackend) GetNVIDIAKernelModulesActive ¶ added in v0.2.0
func (b *MacaroniBackend) GetNVIDIAKernelModulesActive(open bool) (*[]*specs.KernelModule, error)
func (*MacaroniBackend) GetName ¶
func (b *MacaroniBackend) GetName() string
func (*MacaroniBackend) GetVulkanICDDirs ¶
func (b *MacaroniBackend) GetVulkanICDDirs() ([]string, error)
func (*MacaroniBackend) GetVulkanLayersDirs ¶
func (b *MacaroniBackend) GetVulkanLayersDirs() ([]string, error)
func (*MacaroniBackend) PurgeGBMLinks ¶ added in v0.2.0
func (b *MacaroniBackend) PurgeGBMLinks(setup *specs.System, libs []string) error
func (*MacaroniBackend) PurgeNVIDIADriver ¶ added in v0.2.0
func (b *MacaroniBackend) PurgeNVIDIADriver(system *specs.System) error
func (*MacaroniBackend) PurgeNVIDIAKernelDriverActive ¶ added in v0.2.0
func (b *MacaroniBackend) PurgeNVIDIAKernelDriverActive(setup *specs.NVIDIASetup, nvidiaVersion, kernelVersion, driverType string) error
func (*MacaroniBackend) SetNVIDIAModprobeFiles ¶ added in v0.2.0
func (b *MacaroniBackend) SetNVIDIAModprobeFiles(setup *specs.NVIDIASetup, withVideoGroup, force bool) error
func (*MacaroniBackend) SetNVIDIAVersion ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.