Print this page
OS-881 To workaround OS-580 add support to only invalidate mappings from a single process

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/mman.h
          +++ new/usr/src/uts/common/sys/mman.h
↓ open down ↓ 331 lines elided ↑ open up ↑
 332  332  #define POSIX_MADV_WILLNEED     3       /* MADV_WILLNEED */
 333  333  #define POSIX_MADV_DONTNEED     4       /* MADV_DONTNEED */
 334  334  #endif
 335  335  
 336  336  /* flags to msync */
 337  337  #define MS_OLDSYNC      0x0             /* old value of MS_SYNC */
 338  338                                          /* modified for UNIX98 compliance */
 339  339  #define MS_SYNC         0x4             /* wait for msync */
 340  340  #define MS_ASYNC        0x1             /* return immediately */
 341  341  #define MS_INVALIDATE   0x2             /* invalidate caches */
      342 +#define MS_INVALCURPROC 0x8             /* invalidate cache for curproc only */
 342  343  
 343  344  #if     (_POSIX_C_SOURCE <= 2) && !defined(_XPG4_2) || defined(__EXTENSIONS__)
 344  345  /* functions to mctl */
 345  346  #define MC_SYNC         1               /* sync with backing store */
 346  347  #define MC_LOCK         2               /* lock pages in memory */
 347  348  #define MC_UNLOCK       3               /* unlock pages from memory */
 348  349  #define MC_ADVISE       4               /* give advice to management */
 349  350  #define MC_LOCKAS       5               /* lock address space in memory */
 350  351  #define MC_UNLOCKAS     6               /* unlock address space from memory */
 351  352  #define MC_HAT_ADVISE   7               /* advise hat map size */
↓ open down ↓ 77 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX