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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PCIDevice ¶
type PCIDevice struct { BusId string `json:"bus_id,omitempty" yaml:"bus_id,omitempty"` ClassName string `json:"class_name,omitempty" yaml:"class_name,omitempty"` ClassId string `json:"class_id,omitempty" yaml:"class_id,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` Id string `json:"id,omitempty" yaml:"id,omitempty"` Subsystem string `json:"subsystem,omitempty" yaml:"subsystem,omitempty"` DeviceName string `json:"device_name,omitempty" yaml:"device_name,omitempty"` KernelDriverInUse string `json:"kernel_driver_inuse,omitempty" yaml:"kernel_driver_inuse,omitempty"` KernelModules []string `json:"kernel_modules,omitempty" yaml:"kernel_modules,omitempty"` }
type SystemDevices ¶
type SystemDevices []*PCIDevice
func GetDevices ¶
func GetDevices() (*SystemDevices, error)
func (*SystemDevices) GetVGADevices ¶
func (s *SystemDevices) GetVGADevices() *[]*PCIDevice
func (*SystemDevices) Json ¶
func (s *SystemDevices) Json() ([]byte, error)
func (*SystemDevices) Yaml ¶
func (s *SystemDevices) Yaml() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.