Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
mmap_anon.h File Reference
#include <sys/types.h>

Functions

voidmmap_anon (void *, size_t, int, int, off_t)
 mmap() anonymous space, depending on the system's mmap() style. On systems that use the /dev/zero mapping idiom, zerofd will be set to the file descriptor of the opened /dev/zero. More...
 

Function Documentation

◆ mmap_anon()

void * mmap_anon ( void addr,
size_t  len,
int  prot,
int  flags,
off_t  offset 
)

mmap() anonymous space, depending on the system's mmap() style. On systems that use the /dev/zero mapping idiom, zerofd will be set to the file descriptor of the opened /dev/zero.

Parameters
addraddress to map at.
lennumber of bytes from addr to be mapped.
protprotections (region accessibility).
flagsspecifies the type of the mapped object.
offsetstart mapping at byte offset.
zerofd
Returns
a pointer to the mapped region upon successful completion, -1 otherwise.