Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / ndk / platforms / android-18 / arch-x86 / usr / include / linux / swap.h
blob63ba556dde301088021f85241b8beb672ea66c5a
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
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>
21 #include <asm/atomic.h>
22 #include <asm/page.h>
24 #define SWAP_FLAG_PREFER 0x8000
25 #define SWAP_FLAG_PRIO_MASK 0x7fff
26 #define SWAP_FLAG_PRIO_SHIFT 0
28 #define MAX_SWAPFILES_SHIFT 5
29 #define MAX_SWAPFILES (1 << MAX_SWAPFILES_SHIFT)
31 typedef struct {
32 unsigned long val;
33 } swp_entry_t;
35 struct reclaim_state {
36 unsigned long reclaimed_slab;
39 #endif