15#ifndef NEP_PERF_DISK_H
16#define NEP_PERF_DISK_H
35 if ((fd = open(path, O_RDONLY)) < 0)
58 if ((fd = open(path, O_RDONLY)) < 0)
65 ret = posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED);
static int nep_perf_drop_cache(const char *path)
Drop a file's pages from the page cache.
Definition perf_disk.h:54
static int nep_perf_sync_file(const char *path)
Flush a closed file's data to the storage device.
Definition perf_disk.h:31