Documentation ¶
Overview ¶
Bits and pieces from asm-generic/ioctl.h
Package ipmi implements functions to communicate with the OpenIPMI driver interface.
Index ¶
- Constants
- func IO(t int, nr int) int
- func IOR(t int, nr int, size int) int
- func IOWR(t int, nr int, size int) int
- func Ioctl(fd uintptr, name int, data unsafe.Pointer) syscall.Errno
- type ChassisStatus
- type DevID
- type Event
- type IPMI
- func (i *IPMI) ClearCMOSClearValidBits(data []byte) error
- func (i *IPMI) EnableSEL() (bool, error)
- func (i *IPMI) GetChassisStatus() (*ChassisStatus, error)
- func (i *IPMI) GetDeviceID() (*DevID, error)
- func (i *IPMI) GetLanConfig(channel byte, param byte) ([]byte, error)
- func (i *IPMI) GetSELInfo() (*SELInfo, error)
- func (i *IPMI) IsCMOSClearSet() (bool, []byte, error)
- func (i *IPMI) LogSystemEvent(e *Event) error
- func (i *IPMI) RawCmd(param []byte) ([]byte, error)
- func (i *IPMI) SetSystemFWVersion(version string) error
- func (i *IPMI) ShutoffWatchdog() error
- func (i *IPMI) WatchdogRunning() (bool, error)
- type OEMNontsEvent
- type OEMTsEvent
- type SELInfo
- type StandardEvent
Constants ¶
const ( // SEL // STD_TYPE = 0x02 OEM_NTS_TYPE = 0xFB )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChassisStatus ¶
type Event ¶
type Event struct { RecordID uint16 RecordType uint8 StandardEvent OEMTsEvent OEMNontsEvent }
Event is included three kinds of events, Standard, OEM timestamped and OEM non-timestamped
The record type decides which event should be used
type IPMI ¶
func (*IPMI) ClearCMOSClearValidBits ¶
Set BIOS boot order with both CMOS clear and valid bits cleared
func (*IPMI) GetChassisStatus ¶
func (i *IPMI) GetChassisStatus() (*ChassisStatus, error)
func (*IPMI) GetDeviceID ¶
func (*IPMI) GetSELInfo ¶
func (*IPMI) IsCMOSClearSet ¶
Get BIOS boot order data and check if CMOS clear bit and valid bit are both set
func (*IPMI) LogSystemEvent ¶
LogSystemEvent adds an SEL (System Event Log) entry.
func (*IPMI) SetSystemFWVersion ¶
SetSystemFWVersion sets the provided system firmware version to BMC via IPMI.
func (*IPMI) ShutoffWatchdog ¶
func (*IPMI) WatchdogRunning ¶
type OEMNontsEvent ¶
type OEMNontsEvent struct {
OEMNontsDefinedData [13]uint8
}
OEMNonTsEvent is a non-timestamped OEM-custom event.
It holds 13 bytes of OEM-defined arbitrary data.
type OEMTsEvent ¶
OEMTsEvent is a timestamped OEM-custom event.
It holds 6 bytes of OEM-defined arbitrary data.