enum

Mmap::Flags

Inherits Enum / Comparable / Value / Object

Constants

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
None = 0
All = 2080636944

Instance methods

crypto_key?

Returns true if this enum value contains CryptoKey

Source
fixed?

Returns true if this enum value contains Fixed

Source
guard_page?

Returns true if this enum value contains GuardPage

Source
huge?

Returns true if this enum value contains Huge

Source
huge_1gb?

Returns true if this enum value contains Huge_1gb

Source
huge_2mb?

Returns true if this enum value contains Huge_2mb

Source
none?
Source