1570af302Sopenharmony_ci#ifndef _SYS_SWAP_H 2570af302Sopenharmony_ci#define _SYS_SWAP_H 3570af302Sopenharmony_ci 4570af302Sopenharmony_ci#ifdef __cplusplus 5570af302Sopenharmony_ciextern "C" { 6570af302Sopenharmony_ci#endif 7570af302Sopenharmony_ci 8570af302Sopenharmony_ci 9570af302Sopenharmony_ci#define SWAP_FLAG_PREFER 0x8000 10570af302Sopenharmony_ci#define SWAP_FLAG_PRIO_MASK 0x7fff 11570af302Sopenharmony_ci#define SWAP_FLAG_PRIO_SHIFT 0 12570af302Sopenharmony_ci#define SWAP_FLAG_DISCARD 0x10000 13570af302Sopenharmony_ci 14570af302Sopenharmony_ciint swapon (const char *, int); 15570af302Sopenharmony_ciint swapoff (const char *); 16570af302Sopenharmony_ci 17570af302Sopenharmony_ci#ifdef __cplusplus 18570af302Sopenharmony_ci} 19570af302Sopenharmony_ci#endif 20570af302Sopenharmony_ci 21570af302Sopenharmony_ci#endif 22