enum Mmap::Flags

Defined in:

mmap/mmap.cr

Enum Members

Fixed = 16
Huge = 262144

= LibC::MAP_32BIT = LibC::MAP_FIXED_NO_REPLACE(Linux) vs EXCL(BSD) Linux only. Only works with anonymous memory. Would be nice if the man page mentioned that

Huge_2mb = 1409548288
Huge_1gb = 2013528064
CryptoKey = 16

Stack = LibC::MAP_STACK # Linux: flag exists but not implemented Sync = LibC::MAP_SYNC # Linux only NoSync = LibC::MAP_NOSYNC # BSD only NoCore = LibC::MAP_NOCORE # BSD only Populate = LibC::MAP_POPULATE # Linux only Nonblock = LibC::MAP_NONBLOCK # Linux only (requires POPULATE) - currently turns POPULATE in to noop Possibly same as Linux POPULATE & NONBLOCK but functional PreFaultRead = LibC::MAP_PREFAULT_READ # BSD only CryptoKey = LibC::MAP_DONTDUMP | LibC::MAP_DONTFORK # Fails on Linux

GuardPage = 16

Instance Method Summary

Instance Method Detail

def crypto_key? #

[View source]
def fixed? #

[View source]
def guard_page? #

[View source]
def huge? #

[View source]
def huge_1gb? #

[View source]
def huge_2mb? #

[View source]
def none? #

[View source]