|
NDN-DPDK
High-Speed Named Data Networking Forwarder
|
#include "mmapfd.h"#include "logger.h"#include <fcntl.h>#include <sys/mman.h>#include <sys/types.h>#include <unistd.h>Macros | |
| #define | MmapFd_Error(func) |
Functions | |
| N_LOG_INIT (MmapFd) | |
| bool | MmapFd_Open (MmapFd *m, const char *filename, size_t size) |
| Create a file with memory map. | |
| bool | MmapFd_Close (MmapFd *m, const char *filename, size_t size) |
| Close a file with memory map. | |
| #define MmapFd_Error | ( | func | ) |
| bool MmapFd_Close | ( | MmapFd * | m, |
| const char * | filename, | ||
| size_t | size ) |
Close a file with memory map.
| size | truncate to final file size. |
| bool MmapFd_Open | ( | MmapFd * | m, |
| const char * | filename, | ||
| size_t | size ) |
Create a file with memory map.
| size | intended file size. |
| N_LOG_INIT | ( | MmapFd | ) |