Go to the source code of this file.
◆ MmapFd
Memory map and file descriptor.
◆ MmapFd_At()
| __rte_always_inline void* MmapFd_At |
( |
const MmapFd * |
m, |
|
|
size_t |
pos |
|
) |
| |
Access mapped memory region.
- Precondition
MmapFd_Open was successful.
◆ MmapFd_Close()
| bool MmapFd_Close |
( |
MmapFd * |
m, |
|
|
const char * |
filename, |
|
|
size_t |
size |
|
) |
| |
Close a file with memory map.
- Parameters
-
| size | truncate to final file size. |
- Returns
- whether success.
◆ MmapFd_Open()
| bool MmapFd_Open |
( |
MmapFd * |
m, |
|
|
const char * |
filename, |
|
|
size_t |
size |
|
) |
| |
Create a file with memory map.
- Parameters
-
- Returns
- whether success.