1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef _LINUX_SWAP_H
13#define _LINUX_SWAP_H
14
15#include <linux/spinlock.h>
16#include <linux/linkage.h>
17#include <linux/mmzone.h>
18#include <linux/list.h>
19#include <linux/sched.h>
20
21#include <asm/atomic.h>
22#include <asm/page.h>
23
24#define SWAP_FLAG_PREFER 0x8000
25#define SWAP_FLAG_PRIO_MASK 0x7fff
26#define SWAP_FLAG_PRIO_SHIFT 0
27
28#define MAX_SWAPFILES_SHIFT 5
29#define MAX_SWAPFILES (1 << MAX_SWAPFILES_SHIFT)
30
31typedef struct {
32 unsigned long val;
33} swp_entry_t;
34
35struct reclaim_state {
36 unsigned long reclaimed_slab;
37};
38
39#endif
40