Function client_umap(const char *, int, int, void *)¶
Defined in File UmapClientManager.cpp
Function Documentation¶
-
void *client_umap(const char *filename, int prot, int flags, void *addr)¶
client_umap Functionally equivalent to mmaping a file. Should be called only after connection with target umap-service has been established using init_umap_client
- Parameters
filename – Full path to the file to be memory mapped
prot – At present it only accepts PROT_READ as we serve read-only buffers This parameter is to catch instances where users intend to use the buffer other than read-only purposes.
flags – At present it only accepts MAP_SHARED as these buffers are supposed to be shared between multiple processes, which include the mpumap service. This is to catch cases where user intends to use it otherwise.
addr – non-NULL value is intended for fixed address. Floating address otherwise.
- Returns
Return NULL on failure. Else return the userspace mapped address