blob: 63ba556dde301088021f85241b8beb672ea66c5a [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/****************************************************************************
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
Ben Cheng4b29af02012-03-07 16:14:53 -080014
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080015#include <linux/spinlock.h>
16#include <linux/linkage.h>
17#include <linux/mmzone.h>
18#include <linux/list.h>
19#include <linux/sched.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080020
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080021#include <asm/atomic.h>
22#include <asm/page.h>
Ben Cheng4b29af02012-03-07 16:14:53 -080023
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080024#define SWAP_FLAG_PREFER 0x8000
25#define SWAP_FLAG_PRIO_MASK 0x7fff
26#define SWAP_FLAG_PRIO_SHIFT 0
Ben Cheng4b29af02012-03-07 16:14:53 -080027
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080028#define MAX_SWAPFILES_SHIFT 5
29#define MAX_SWAPFILES (1 << MAX_SWAPFILES_SHIFT)
Ben Cheng4b29af02012-03-07 16:14:53 -080030
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080031typedef struct {
32 unsigned long val;
33} swp_entry_t;
Ben Cheng4b29af02012-03-07 16:14:53 -080034
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080035struct reclaim_state {
36 unsigned long reclaimed_slab;
37};
Ben Cheng4b29af02012-03-07 16:14:53 -080038
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080039#endif