hwmon

package
v0.0.0-...-2f3587d Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BusTypeIsa     = 1
	BusTypePci     = 2
	BusTypeVirtual = 4
	BusTypeAcpi    = 5
	BusTypeHid     = 6
	BusTypeScsi    = 8
)

Variables

This section is empty.

Functions

func GetFans

func GetFans(chip gosensors.Chip) []fans.HwMonFan

func GetTempSensors

func GetTempSensors(chip gosensors.Chip) map[int]*sensors.HwmonSensor

func UpdateFanConfigFromHwMonControllers

func UpdateFanConfigFromHwMonControllers(controllers []*HwMonController, config *configuration.FanConfig) error

Types

type HwMonController

type HwMonController struct {
	Name     string
	DType    string
	Modalias string
	Platform string
	Path     string

	// Fans (can be matched either by enumeration index or channel number)
	Fans []fans.HwMonFan
	// Sensors maps from HwMon index -> HwmonSensor instance
	Sensors map[int]*sensors.HwmonSensor
}

func GetChips

func GetChips() []*HwMonController

Jump to

Keyboard shortcuts

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