miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
mman.h File Reference
#include <stddef.h>
Include dependency graph for mman.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PROT_NONE   0
#define PROT_READ   1
#define PROT_WRITE   2
#define PROT_EXEC   4
#define MAP_SHARED   0x01
#define MAP_PRIVATE   0x02
#define MAP_ANONYMOUS   0x20
#define MAP_ANON   MAP_ANONYMOUS
#define MAP_FAILED   ((void *)-1)

Functions

void * mmap (void *addr, size_t len, int prot, int flags, int fd, long offset)
int munmap (void *addr, size_t len)

Macro Definition Documentation

◆ MAP_ANON

#define MAP_ANON   MAP_ANONYMOUS

◆ MAP_ANONYMOUS

#define MAP_ANONYMOUS   0x20

◆ MAP_FAILED

#define MAP_FAILED   ((void *)-1)

◆ MAP_PRIVATE

#define MAP_PRIVATE   0x02

◆ MAP_SHARED

#define MAP_SHARED   0x01

◆ PROT_EXEC

#define PROT_EXEC   4

◆ PROT_NONE

#define PROT_NONE   0

◆ PROT_READ

#define PROT_READ   1

◆ PROT_WRITE

#define PROT_WRITE   2

Function Documentation

◆ mmap()

void * mmap ( void * addr,
size_t len,
int prot,
int flags,
int fd,
long offset )
Here is the call graph for this function:
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: