macaroni

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

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

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 (b *MacaroniBackend) ConfigureGBMLinks(setup *specs.System,
	nvidiaVersion string, enabled bool) error

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 (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

func (b *MacaroniBackend) SetNVIDIAVersion(config *specs.Config,
	system *specs.System, v string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL