- fd
- A int containing the file descriptor to advise.
- pattern
- A Mono.Unix.FileAccessPattern containing the file access pattern to suggest.
- offset
- A long containing the start of the range to suggest the pattern access pattern.
- len
- A long containing the length of the range to suggest the pattern access pattern. If 0, pattern is suggested until end-of-file.
Type Reason ArgumentException fd is not a valid file descriptor.
-or-
advice is not a valid value.
System.IO.IOException fd refers to a pipe or FIFO.
AdviseFileAccessPattern is used to announce an intention to access file data with a specific pattern, allowing the kernel to perform appropriate optimizations.
pattern applies to a region starting at offset and extending for len bytes (or until end-of-file if len is 0) within the file specified by fd. The specified region need not currently exist.
The specified pattern is not binding; it merely constitutes an expectation on behalf of the application.