Home | History | Annotate | Download | only in linux
      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  ***   To edit the content of this header, modify the corresponding
     11  ***   source file (e.g. under external/kernel-headers/original/) then
     12  ***   run bionic/libc/kernel/tools/update_all.py
     13  ***
     14  ***   Any manual change here will be lost the next time this script will
     15  ***   be run. You've been warned!
     16  ***
     17  ****************************************************************************
     18  ****************************************************************************/
     19 #ifndef _LINUX_SWAP_H
     20 #define _LINUX_SWAP_H
     21 #include <linux/spinlock.h>
     22 #include <linux/linkage.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #include <linux/mmzone.h>
     25 #include <linux/list.h>
     26 #include <linux/sched.h>
     27 #include <asm/atomic.h>
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #include <asm/page.h>
     30 #define SWAP_FLAG_PREFER 0x8000
     31 #define SWAP_FLAG_PRIO_MASK 0x7fff
     32 #define SWAP_FLAG_PRIO_SHIFT 0
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define MAX_SWAPFILES_SHIFT 5
     35 #define MAX_SWAPFILES (1 << MAX_SWAPFILES_SHIFT)
     36 union swap_header {
     37  struct {
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39  char reserved[PAGE_SIZE - 10];
     40  char magic[10];
     41  } magic;
     42  struct {
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44  char bootbits[1024];
     45  __u32 version;
     46  __u32 last_page;
     47  __u32 nr_badpages;
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49  unsigned char sws_uuid[16];
     50  unsigned char sws_volume[16];
     51  __u32 padding[117];
     52  __u32 badpages[1];
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  } info;
     55 };
     56 typedef struct {
     57  unsigned long val;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 } swp_entry_t;
     60 struct reclaim_state {
     61  unsigned long reclaimed_slab;
     62 };
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #endif
     65