18#ifndef ZEPHYR_INCLUDE_ZEPHYR_POSIX_SYS_MMAN_H_
19#define ZEPHYR_INCLUDE_ZEPHYR_POSIX_SYS_MMAN_H_
36#define MAP_PRIVATE 0x2
41#define MAP_ANONYMOUS 0x20
48#define MS_INVALIDATE 0x2
51#define MAP_FAILED ((void *)-1)
70int mlock(
const void *addr,
size_t len);
93void *
mmap(
void *addr,
size_t len,
int prot,
int flags,
int fildes,
off_t off);
104int msync(
void *addr,
size_t length,
int flags);
int mode_t
File permission bits type.
long off_t
File offset type.
int munmap(void *addr, size_t len)
Unmap a previously mapped region.
int msync(void *addr, size_t length, int flags)
Synchronise a memory mapping with the underlying storage.
void * mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off)
Map a file or device into memory.
int mlock(const void *addr, size_t len)
Lock a range of the calling process's address space into memory.
int munlock(const void *addr, size_t len)
Unlock a range of the calling process's address space.
int munlockall(void)
Unlock all memory locked by the calling process.
int mlockall(int flags)
Lock all current and/or future memory mappings of the calling process.
int shm_open(const char *name, int oflag, mode_t mode)
Open or create a shared memory object.
int shm_unlink(const char *name)
Remove a shared memory object.
POSIX fundamental types (<sys/types.h>)