blob: 7529227b5812b556bc79a0e11addc0697f3ac64e [file] [log] [blame]
Viet-Trung Luu96b05c12016-01-11 11:26:36 -08001#ifndef _SYS_SWAP_H
2#define _SYS_SWAP_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
George Kulakowski17e3b042016-02-18 15:59:50 -08008#define SWAP_FLAG_PREFER 0x8000
9#define SWAP_FLAG_PRIO_MASK 0x7fff
10#define SWAP_FLAG_PRIO_SHIFT 0
11#define SWAP_FLAG_DISCARD 0x10000
Viet-Trung Luu96b05c12016-01-11 11:26:36 -080012
George Kulakowski17e3b042016-02-18 15:59:50 -080013int swapon(const char*, int);
14int swapoff(const char*);
Viet-Trung Luu96b05c12016-01-11 11:26:36 -080015
16#ifdef __cplusplus
17}
18#endif
19
20#endif