ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.232 by root, Mon Jul 30 16:46:30 2012 UTC vs.
Revision 1.234 by root, Mon Aug 13 01:02:30 2012 UTC

362 362
363 363
364=item aio_open $pathname, $flags, $mode, $callback->($fh) 364=item aio_open $pathname, $flags, $mode, $callback->($fh)
365 365
366Asynchronously open or create a file and call the callback with a newly 366Asynchronously open or create a file and call the callback with a newly
367created filehandle for the file. 367created filehandle for the file (or C<undef> in case of an error).
368 368
369The pathname passed to C<aio_open> must be absolute. See API NOTES, above, 369The pathname passed to C<aio_open> must be absolute. See API NOTES, above,
370for an explanation. 370for an explanation.
371 371
372The C<$flags> argument is a bitmask. See the C<Fcntl> module for a 372The C<$flags> argument is a bitmask. See the C<Fcntl> module for a
1277 1277
1278 aio_mlockall IO::AIO::MCL_FUTURE; 1278 aio_mlockall IO::AIO::MCL_FUTURE;
1279 1279
1280=item aio_fiemap $fh, $start, $length, $flags, $count, $cb->(\@extents) 1280=item aio_fiemap $fh, $start, $length, $flags, $count, $cb->(\@extents)
1281 1281
1282Queries the extents of the given file (by calling the Linux FIEMAP ioctl, 1282Queries the extents of the given file (by calling the Linux C<FIEMAP>
1283see L<http://cvs.schmorp.de/IO-AIO/doc/fiemap.txt> for details). If the 1283ioctl, see L<http://cvs.schmorp.de/IO-AIO/doc/fiemap.txt> for details). If
1284C<ioctl> is not available on your OS, then this request will fail with 1284the ioctl is not available on your OS, then this request will fail with
1285C<ENOSYS>. 1285C<ENOSYS>.
1286 1286
1287C<$start> is the starting offset to query extents for, C<$length> is the 1287C<$start> is the starting offset to query extents for, C<$length> is the
1288size of the range to query - if it is C<undef>, then the whole file will 1288size of the range to query - if it is C<undef>, then the whole file will
1289be queried. 1289be queried.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines