Documentation ¶
Overview ¶
Package swap probes Linux swapspaces.
Index ¶
- Constants
- type Probe
- type SwapHeader
- func (s SwapHeader) Get_lastpage() uint32
- func (s SwapHeader) Get_nr_badpages() uint32
- func (s SwapHeader) Get_uuid() []byte
- func (s SwapHeader) Get_version() uint32
- func (s SwapHeader) Get_volume() []byte
- func (s SwapHeader) Put_lastpage(v uint32)
- func (s SwapHeader) Put_nr_badpages(v uint32)
- func (s SwapHeader) Put_uuid(v []byte)
- func (s SwapHeader) Put_version(v uint32)
- func (s SwapHeader) Put_volume(v []byte)
Constants ¶
View Source
const SWAPHEADER_SIZE = 516
SWAPHEADER_SIZE is the size of the SwapHeader struct.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Probe ¶
type Probe struct{}
Probe for the filesystem.
type SwapHeader ¶
type SwapHeader []byte
SwapHeader is a byte slice representing the swap_header.h C header.
func (SwapHeader) Get_lastpage ¶
func (s SwapHeader) Get_lastpage() uint32
Get_lastpage returns lastpage.
func (SwapHeader) Get_nr_badpages ¶
func (s SwapHeader) Get_nr_badpages() uint32
Get_nr_badpages returns nr_badpages.
func (SwapHeader) Get_version ¶
func (s SwapHeader) Get_version() uint32
Get_version returns version.
func (SwapHeader) Put_lastpage ¶
func (s SwapHeader) Put_lastpage(v uint32)
Put_lastpage sets lastpage.
func (SwapHeader) Put_nr_badpages ¶
func (s SwapHeader) Put_nr_badpages(v uint32)
Put_nr_badpages sets nr_badpages.
Click to show internal directories.
Click to hide internal directories.