sys_readahead  [mm/filemap.c]


Populates the page cache with data from a file so that subsequent reads from that file will not block on disk I/O.

Arguments

eax 225
ebx File descriptor identifying the file which is to be read.
ecx Starting offset from which data is to be read. This value is effectively rounded down to a page boundary and bytes are read up to the next page boundary greater than or equal to (ecx+edx)
edx Number of bytes to be read.

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EBADF ebx is not a valid file descriptor or is not open for reading.
-EINVAL ebx does not refer to a file type to which sys_readahead can be applied.

Remarks

sys_readahead does not read beyond the end of the file. sys_readahead blocks until the specified data has been read. The current file offset of the open file referred to by ebx is left unchanged.

Compatibility

n/a