pci

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: GPL-3.0 Imports: 8 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.

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)

Jump to

Keyboard shortcuts

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