… | |
… | |
592 | =item eio_readahead (int fd, off_t offset, size_t length, int pri, eio_cb cb, void *data) |
592 | =item eio_readahead (int fd, off_t offset, size_t length, int pri, eio_cb cb, void *data) |
593 | |
593 | |
594 | Calls C<readahead(2)>. If the syscall is missing, then the call is |
594 | Calls C<readahead(2)>. If the syscall is missing, then the call is |
595 | emulated by simply reading the data (currently in 64kiB chunks). |
595 | emulated by simply reading the data (currently in 64kiB chunks). |
596 | |
596 | |
|
|
597 | =item eio_syncfs (int fd, int pri, eio_cb cb, void *data) |
|
|
598 | |
|
|
599 | Calls Linux' C<syncfs> syscall, if available. Returns C<-1> and sets |
|
|
600 | C<errno> to C<ENOSYS> if the call is missing I<but still calls sync()>, |
|
|
601 | if the C<fd> is C<< >= 0 >>, so you can probe for the availability of the |
|
|
602 | syscall with a negative C<fd> argument and checking for C<-1/ENOSYS>. |
|
|
603 | |
597 | =item eio_sync_file_range (int fd, off_t offset, size_t nbytes, unsigned int flags, int pri, eio_cb cb, void *data) |
604 | =item eio_sync_file_range (int fd, off_t offset, size_t nbytes, unsigned int flags, int pri, eio_cb cb, void *data) |
598 | |
605 | |
599 | Calls C<sync_file_range>. If the syscall is missing, then this is the same |
606 | Calls C<sync_file_range>. If the syscall is missing, then this is the same |
600 | as calling C<fdatasync>. |
607 | as calling C<fdatasync>. |
601 | |
608 | |