readahead(2) System Calls Manual readahead(2) readahead - C (libc, -lc) #define _GNU_SOURCE /* See feature_test_macros(7) */ #define _FILE_OFFSET_BITS 64 #include ssize_t readahead(int fd, off_t offset, size_t count); readahead() (initiates readahead) , - (, ). fd -- . offset , count . - , offset , (offset+count). readahead() . , fd, . On success, readahead() returns 0; on failure, -1 is returned, with errno set to indicate the error. EBADF fd . EINVAL fd , readahead(). 32- , syscall(2). Linux. Linux 2.4.13, glibc 2.3. _FILE_OFFSET_BITS should be defined to be 64 in code that uses a pointer to readahead, if the code is intended to be portable to traditional 32-bit x86 and ARM platforms where off_t's width defaults to 32 bits. readahead() . , , . ext[234] , (indirect) (extents), . lseek(2), madvise(2), mmap(2), posix_fadvise(2), read(2) () aereiae , Azamat Hackimov , Dmitriy S. Seregin , Katrin Kutepova , Lockal , Yuri Kozlov , ; GNU (GNU General Public License - GPL, 3 ) , - . - , , () () () <>. Linux 6.9.1 2 2024 . readahead(2)