public class Mman extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Mman.NoTransitions |
| Constructor and Description |
|---|
Mman() |
| Modifier and Type | Method and Description |
|---|---|
static int |
MADV_DONTNEED()
Don't need these pages.
|
static int |
MADV_NORMAL()
No further special treatment.
|
static int |
MADV_RANDOM()
Expect random page references.
|
static int |
MADV_SEQUENTIAL()
Expect sequential page references.
|
static int |
MADV_WILLNEED()
Will need these pages.
|
static int |
madvise(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len,
int advice)
Advise the system about particular usage patterns the program follows for the region starting
at ADDR and extending LEN bytes.
|
static int |
MAP_ANON() |
static int |
MAP_ANONYMOUS()
Don't use a file.
|
static int |
MAP_DENYWRITE()
ETXTBSY
|
static int |
MAP_EXECUTABLE()
Mark it as an executable.
|
static org.graalvm.word.PointerBase |
MAP_FAILED()
Return value of `mmap' in case of an error.
|
static int |
MAP_FILE() |
static int |
MAP_FIXED()
Interpret addr exactly.
|
static int |
MAP_GROWSDOWN()
Stack-like segment.
|
static int |
MAP_LOCKED()
Lock the mapping.
|
static int |
MAP_NONBLOCK()
Do not block on IO.
|
static int |
MAP_NORESERVE()
Don't check for reservations.
|
static int |
MAP_POPULATE()
Populate (prefault) pagetables.
|
static int |
MAP_PRIVATE()
Changes are private.
|
static int |
MAP_SHARED()
Share changes.
|
static int |
MAP_TYPE()
Mask for type of mapping.
|
static int |
MCL_CURRENT()
Lock all currently mapped pages.
|
static int |
MCL_FUTURE()
Lock all additions to address space.
|
static int |
mincore(org.graalvm.word.PointerBase start,
org.graalvm.word.UnsignedWord len,
org.graalvm.nativeimage.c.type.CCharPointer vec)
mincore returns the memory residency status of the pages in the current process's address
space specified by [start, start + len).
|
static int |
mlock(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len)
Guarantee all whole pages mapped by the range [ADDR,ADDR+LEN) to be memory resident.
|
static int |
mlockall(int flags)
Cause all currently mapped pages of the process to be memory resident until unlocked by a
call to the `munlockall', until the process exits, or until the process calls `execve'.
|
static org.graalvm.word.Pointer |
mmap(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len,
int prot,
int flags,
int fd,
long offset)
Map addresses starting near ADDR and extending for LEN bytes.
|
static int |
mprotect(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len,
int prot)
Change the memory protection of the region starting at ADDR and extending LEN bytes to PROT.
|
static int |
MREMAP_FIXED() |
static int |
MREMAP_MAYMOVE() |
static org.graalvm.word.PointerBase |
mremap(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord old_len,
org.graalvm.word.UnsignedWord new_len,
int flags,
org.graalvm.word.PointerBase new_address)
Remap pages mapped by the range [ADDR,ADDR+OLD_LEN) to new length NEW_LEN.
|
static int |
MS_ASYNC()
Sync memory asynchronously.
|
static int |
MS_INVALIDATE()
Invalidate the caches.
|
static int |
MS_SYNC()
Synchronous memory sync.
|
static int |
msync(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len,
int flags)
Synchronize the region starting at ADDR and extending LEN bytes with the file it maps.
|
static int |
munlock(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len)
Unlock whole pages previously mapped by the range [ADDR,ADDR+LEN).
|
static int |
munlockall()
All currently mapped pages of the process' address space become unlocked.
|
static int |
munmap(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len)
Deallocate any mapping for the region starting at ADDR and extending LEN bytes.
|
static int |
POSIX_MADV_DONTNEED()
Don't need these pages.
|
static int |
POSIX_MADV_NORMAL()
No further special treatment.
|
static int |
POSIX_MADV_RANDOM()
Expect random page references.
|
static int |
POSIX_MADV_SEQUENTIAL()
Expect sequential page references.
|
static int |
POSIX_MADV_WILLNEED()
Will need these pages.
|
static int |
posix_madvise(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len,
int advice)
This is the POSIX name for this function.
|
static int |
PROT_EXEC()
Page can be executed.
|
static int |
PROT_GROWSDOWN()
Extend change to start of growsdown vma (mprotect only).
|
static int |
PROT_GROWSUP()
Extend change to start of growsup vma (mprotect only).
|
static int |
PROT_NONE()
Page can not be accessed.
|
static int |
PROT_READ()
Page can be read.
|
static int |
PROT_WRITE()
Page can be written.
|
static int |
remap_file_pages(org.graalvm.word.PointerBase start,
org.graalvm.word.UnsignedWord size,
int prot,
org.graalvm.word.UnsignedWord pgoff,
int flags)
Remap arbitrary pages of a shared backing store within an existing VMA.
|
static int |
shm_open(org.graalvm.nativeimage.c.type.CCharPointer name,
int oflag,
int mode)
Open shared memory segment.
|
static int |
shm_unlink(org.graalvm.nativeimage.c.type.CCharPointer name)
Remove shared memory segment.
|
public static int PROT_READ()
public static int PROT_WRITE()
public static int PROT_EXEC()
public static int PROT_NONE()
public static int PROT_GROWSDOWN()
public static int PROT_GROWSUP()
public static int MAP_SHARED()
public static int MAP_PRIVATE()
public static int MAP_TYPE()
public static int MAP_FIXED()
public static int MAP_FILE()
public static int MAP_ANONYMOUS()
public static int MAP_ANON()
public static int MAP_GROWSDOWN()
public static int MAP_DENYWRITE()
public static int MAP_EXECUTABLE()
public static int MAP_LOCKED()
public static int MAP_NORESERVE()
public static int MAP_POPULATE()
public static int MAP_NONBLOCK()
public static int MS_ASYNC()
public static int MS_SYNC()
public static int MS_INVALIDATE()
public static int MCL_CURRENT()
public static int MCL_FUTURE()
public static int MREMAP_MAYMOVE()
public static int MREMAP_FIXED()
public static int MADV_NORMAL()
public static int MADV_RANDOM()
public static int MADV_SEQUENTIAL()
public static int MADV_WILLNEED()
public static int MADV_DONTNEED()
public static int POSIX_MADV_NORMAL()
public static int POSIX_MADV_RANDOM()
public static int POSIX_MADV_SEQUENTIAL()
public static int POSIX_MADV_WILLNEED()
public static int POSIX_MADV_DONTNEED()
public static org.graalvm.word.PointerBase MAP_FAILED()
public static org.graalvm.word.Pointer mmap(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len,
int prot,
int flags,
int fd,
long offset)
public static int munmap(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len)
public static int mprotect(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len,
int prot)
public static int msync(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len,
int flags)
public static int madvise(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len,
int advice)
public static int posix_madvise(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len,
int advice)
public static int mlock(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len)
public static int munlock(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord len)
public static int mlockall(int flags)
public static int munlockall()
public static int mincore(org.graalvm.word.PointerBase start,
org.graalvm.word.UnsignedWord len,
org.graalvm.nativeimage.c.type.CCharPointer vec)
public static org.graalvm.word.PointerBase mremap(org.graalvm.word.PointerBase addr,
org.graalvm.word.UnsignedWord old_len,
org.graalvm.word.UnsignedWord new_len,
int flags,
org.graalvm.word.PointerBase new_address)
public static int remap_file_pages(org.graalvm.word.PointerBase start,
org.graalvm.word.UnsignedWord size,
int prot,
org.graalvm.word.UnsignedWord pgoff,
int flags)
public static int shm_open(org.graalvm.nativeimage.c.type.CCharPointer name,
int oflag,
int mode)
public static int shm_unlink(org.graalvm.nativeimage.c.type.CCharPointer name)