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/asm-alpha/mman.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 #ifndef __ALPHA_MMAN_H__
    2 #define __ALPHA_MMAN_H__
    3 
    4 #define PROT_READ       0x1             /* page can be read */
    5 #define PROT_WRITE      0x2             /* page can be written */
    6 #define PROT_EXEC       0x4             /* page can be executed */
    7 #define PROT_NONE       0x0             /* page can not be accessed */
    8 
    9 #define MAP_SHARED      0x01            /* Share changes */
   10 #define MAP_PRIVATE     0x02            /* Changes are private */
   11 #define MAP_TYPE        0x0f            /* Mask for type of mapping (OSF/1 is _wrong_) */
   12 #define MAP_FIXED       0x100           /* Interpret addr exactly */
   13 #define MAP_ANONYMOUS   0x10            /* don't use a file */
   14 
   15 /* not used by linux, but here to make sure we don't clash with OSF/1 defines */
   16 #define _MAP_HASSEMAPHORE 0x0200
   17 #define _MAP_INHERIT    0x0400
   18 #define _MAP_UNALIGNED  0x0800
   19 
   20 /* These are linux-specific */
   21 #define MAP_GROWSDOWN   0x1000          /* stack-like segment */
   22 #define MAP_DENYWRITE   0x2000          /* ETXTBSY */
   23 #define MAP_EXECUTABLE  0x4000          /* mark it as an executable */
   24 #define MAP_LOCKED      0x8000          /* lock the mapping */
   25 #define MAP_NORESERVE   0x10000         /* don't check for reservations */
   26 
   27 #define MS_ASYNC        1               /* sync memory asynchronously */
   28 #define MS_SYNC         2               /* synchronous memory sync */
   29 #define MS_INVALIDATE   4               /* invalidate the caches */
   30 
   31 #define MCL_CURRENT      8192           /* lock all currently mapped pages */
   32 #define MCL_FUTURE      16384           /* lock all additions to address space */
   33 
   34 #define MADV_NORMAL     0               /* no further special treatment */
   35 #define MADV_RANDOM     1               /* expect random page references */
   36 #define MADV_SEQUENTIAL 2               /* expect sequential page references */
   37 #define MADV_WILLNEED   3               /* will need these pages */
   38 #define MADV_SPACEAVAIL 5               /* ensure resources are available */
   39 #define MADV_DONTNEED   6               /* dont need these pages */
   40 
   41 /* compatibility flags */
   42 #define MAP_ANON        MAP_ANONYMOUS
   43 #define MAP_FILE        0
   44 
   45 #endif /* __ALPHA_MMAN_H__ */

Cache object: 9dfd6c687d3dc084ac391b225f77357e


[ 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.