| Main index | Section 3 | Options |
#include <kvm.h>
The flags argument is currently unused and must be passed as 0.
If an error occurs, -1 is returned.
Each swap partition and the grand total is summarized in the kvm_swap structure. This structure contains the following fields:
| char ksw_devname[]; | |
| u_int ksw_total; | |
| u_int ksw_used; | |
| int ksw_flags; | |
Values are in PAGE_SIZE'd chunks (see getpagesize(3)). ksw_flags contains a copy of the swap device flags.
If the name of the swap device does not fit in the static char buffer in the structure, it is truncated. The buffer is always zero terminated.
| KVM_SWAPINFO (3) | January 2, 2017 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | An ASCII character walks into a bar and orders a double. "Having a bad day?" asks the barman. "Yeah, I have a parity error," replies the ASCII character. The barman says, "Yeah, I thought you looked a bit off." | ” |