RetroArch
Macros | Functions
memmap.c File Reference
#include <stdint.h>
#include <memmap.h>
Include dependency graph for memmap.c:

Macros

#define PROT_READ   0x1 /* Page can be read */
 
#define PROT_WRITE   0x2 /* Page can be written. */
 
#define PROT_READWRITE   0x3 /* Page can be written to and read from. */
 
#define PROT_EXEC   0x4 /* Page can be executed. */
 
#define PROT_NONE   0x0 /* Page can not be accessed. */
 
#define MAP_FAILED   ((void *) -1)
 

Functions

voidmmap (void *addr, size_t len, int prot, int flags, int fildes, size_t offset)
 
int munmap (void *addr, size_t len)
 
int mprotect (void *addr, size_t len, int prot)
 
int memsync (void *start, void *end)
 
int memprotect (void *addr, size_t len)
 

Macro Definition Documentation

◆ MAP_FAILED

#define MAP_FAILED   ((void *) -1)

◆ PROT_EXEC

#define PROT_EXEC   0x4 /* Page can be executed. */

◆ PROT_NONE

#define PROT_NONE   0x0 /* Page can not be accessed. */

◆ PROT_READ

#define PROT_READ   0x1 /* Page can be read */

◆ PROT_READWRITE

#define PROT_READWRITE   0x3 /* Page can be written to and read from. */

◆ PROT_WRITE

#define PROT_WRITE   0x2 /* Page can be written. */

Function Documentation

◆ memprotect()

int memprotect ( void addr,
size_t  len 
)
Here is the call graph for this function:

◆ memsync()

int memsync ( void start,
void end 
)
Here is the call graph for this function:

◆ mmap()

void* mmap ( void addr,
size_t  len,
int  prot,
int  flags,
int  fildes,
size_t  offset 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mprotect()

int mprotect ( void addr,
size_t  len,
int  prot 
)
Here is the caller graph for this function:

◆ munmap()

int munmap ( void addr,
size_t  len 
)
Here is the call graph for this function:
Here is the caller graph for this function: