Function nc::readahead [−][src]
pub fn readahead(fd: i32, offset: off_t, count: size_t) -> Result<(), Errno>
Expand description
Initialize file head into page cache.
let path = "/etc/passwd"; let ret = nc::open(path, nc::O_RDONLY, 0); let fd = ret.unwrap(); let ret = nc::readahead(fd, 0, 64); assert!(ret.is_ok()); assert!(nc::close(fd).is_ok());