The Linux (GNU)-specific readahead(2) system call achieves a similar result as the posix_fadvise(2) we just saw in terms of performing aggressive file read-ahead. Its signature is as follows:
include <fcntl.h>ssize_t readahead(int fd, off64_t offset, size_t count);
The read-aheads are performed on the target file specified by fd, starting from the file offset and for a maximum of count bytes (rounded up to page granularity).