The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/include/minix/swap.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2 minix/swap.h
    3 
    4 Defines the super block of swap partitions and some useful constants.
    5 
    6 Created:        Aug 2, 1992 by Philip Homburg
    7 */
    8 
    9 #ifndef _MINIX__SWAP_H
   10 #define _MINIX__SWAP_H
   11 
   12 /* Two possible layouts for a partition with swapspace:
   13  *
   14  *      Sector          Swap partition          FS+swap partition
   15  *
   16  *       0 - 1          bootblock               bootblock
   17  *           2          swap header             FS header
   18  *           3          blank                   swap header
   19  *       4 - m          swapspace               file system
   20  *      m+1 - n         -                       swapspace
   21  */
   22  
   23 #define SWAP_MAGIC0     0x9D
   24 #define SWAP_MAGIC1     0xC3
   25 #define SWAP_MAGIC2     0x01
   26 #define SWAP_MAGIC3     0x82
   27 
   28 typedef struct swap_hdr
   29 {
   30         u8_t sh_magic[4];
   31         u8_t sh_version;
   32         u8_t sh_dummy[3];
   33         u32_t sh_offset;
   34         u32_t sh_swapsize;
   35         i32_t sh_priority;
   36 } swap_hdr_t;
   37 
   38 #define SWAP_BOOTOFF     1024
   39 #define SWAP_OFFSET      2048
   40 #define OPTSWAP_BOOTOFF (1024+512)
   41 #define SH_VERSION          1
   42 #define SH_PRIORITY         0
   43 
   44 #endif /* _MINIX__SWAP_H */
   45 
   46 /*
   47  * $PchId: swap.h,v 1.6 1996/04/10 20:25:48 philip Exp $
   48  */

Cache object: 724c057d8cacec72938c3c1716d20b5f


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.