Documentation
¶
Overview ¶
SPDX-Licence-Identifier: Apache-2.0 AND BSD-2-Clause-FreeBSD
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStats ¶
func GetStats() map[uint32]Ctl_io_stats
Wrapper around CGO code to collect the statistics of every LUN
Types ¶
type CtlPortList ¶
type CtlPortList struct {
Targets []Target `xml:"targ_port"`
// contains filtered or unexported fields
}
func (CtlPortList) GetLunId ¶
func (cp CtlPortList) GetLunId(lunNumber uint) (uint, error)
Get Lun ID in target from kernel LUN number
func (CtlPortList) GetLunTarget ¶
func (cp CtlPortList) GetLunTarget(lunNumber uint) *Target
Do a reverse match of Kernel Lun number to Target
type Ctl_io_stats ¶
type Ctl_io_stats struct {
Bytes map[Ctl_stats_types]uint64
Operations map[Ctl_stats_types]uint64
Dmas map[Ctl_stats_types]uint64
}
Statistics exported for a specific LUN or Port
type Ctl_stats_types ¶
type Ctl_stats_types int
const ( CTL_STATS_NO_IO Ctl_stats_types = iota CTL_STATS_READ CTL_STATS_WRITE )
Click to show internal directories.
Click to hide internal directories.