Documentation
¶
Overview ¶
Package swap provides functions to manage swap devices.
Index ¶
Constants ¶
View Source
const ( FLAG_DISCARD = 0x10000 FLAG_DISCARD_ONCE = 0x20000 FLAG_DISCARD_PAGES = 0x40000 )
Flags for swapon syscall.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
func Format(path string, options FormatOptions) error
Format implements the mkswap function to format a swap device.
Types ¶
type FormatOptions ¶
FormatOptions contains options for formatting a swap device.
Click to show internal directories.
Click to hide internal directories.