sys_fadvise64_64  [mm/fadvice.c]


Gives the kernel an 'advice' on how it should use the file handle, so that the kernel can choose appropriate read-ahead and caching techniques for access to the corresponding file.

Arguments

eax 272
ebx File descriptor.
ecx Starting offset.
edx Length.
esi Advice. It may be one of the following predefined values:
POSIX_FADV_NORMAL     - No further special treatment.
POSIX_FADV_RANDOM     - Expect random page references.
POSIX_FADV_SEQUENTIAL - Expect sequential page references.
POSIX_FADV_WILLNEED   - Expect access in the near future.
POSIX_FADV_DONTNEED   - Don't access in the near future.
POSIX_FADV_NOREUSE    - Data will be accessed once.

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 An invalid file descriptor was specified.
-EINVAL An invalid f_mapping of file, edx value is samller than 0, or esi value unknown.

Remarks

n/a

Compatibility

Available since 2.6.0