[][src]Module nc::mman_common

Constants

MADV_DODUMP

Clear the MADV_DONTDUMP flag

MADV_DOFORK

do inherit across fork

MADV_DONTDUMP

Explicity exclude from the core dump, overrides the coredump filter bits

MADV_DONTFORK

don't inherit across fork

MADV_DONTNEED

don't need these pages

MADV_FREE

common parameters: try to keep these consistent across architectures free pages only if memory pressure

MADV_HUGEPAGE

Worth backing with hugepages

MADV_HWPOISON

poison a page for testing

MADV_KEEPONFORK

Undo MADV_WIPEONFORK

MADV_MERGEABLE

KSM may merge identical pages

MADV_NOHUGEPAGE

Not worth backing with hugepages

MADV_NORMAL

no further special treatment

MADV_RANDOM

expect random page references

MADV_REMOVE

remove these pages & resources

MADV_SEQUENTIAL

expect sequential page references

MADV_SOFT_OFFLINE

soft offline page for testing

MADV_UNMERGEABLE

KSM may not merge identical pages

MADV_WILLNEED

will need these pages

MADV_WIPEONFORK

Zero memory on fork, child only

MAP_ANONYMOUS

don't use a file

MAP_FILE

compatibility flags

MAP_FIXED

Interpret addr exactly

MAP_FIXED_NOREPLACE

0x0100 - 0x80000 flags are defined in asm-generic/mman.h MAP_FIXED which doesn't unmap underlying mapping

MAP_TYPE

0x01 - 0x03 are defined in linux/mman.h Mask for type of mapping

MAP_UNINITIALIZED

For anonymous mmap, memory could be uninitialized

MLOCK_ONFAULT

Flags for mlock Lock pages in range after they are faulted in, do not prefault

MS_ASYNC

sync memory asynchronously

MS_INVALIDATE

invalidate the caches

MS_SYNC

synchronous memory sync

PKEY_ACCESS_MASK
PKEY_DISABLE_ACCESS
PKEY_DISABLE_WRITE
PROT_EXEC

page can be executed

PROT_GROWSDOWN

mprotect flag: extend change to start of growsdown vma

PROT_GROWSUP

mprotect flag: extend change to end of growsup vma

PROT_NONE

page can not be accessed

PROT_READ

page can be read

PROT_SEM

page may be used for atomic ops

PROT_WRITE

page can be written