… | |
… | |
2087 | =item IO::AIO::madvise $scalar, $offset, $len, $advice |
2087 | =item IO::AIO::madvise $scalar, $offset, $len, $advice |
2088 | |
2088 | |
2089 | Simply calls the C<posix_madvise> function (see its |
2089 | Simply calls the C<posix_madvise> function (see its |
2090 | manpage for details). The following advice constants are |
2090 | manpage for details). The following advice constants are |
2091 | available: C<IO::AIO::MADV_NORMAL>, C<IO::AIO::MADV_SEQUENTIAL>, |
2091 | available: C<IO::AIO::MADV_NORMAL>, C<IO::AIO::MADV_SEQUENTIAL>, |
2092 | C<IO::AIO::MADV_RANDOM>, C<IO::AIO::MADV_WILLNEED>, C<IO::AIO::MADV_DONTNEED>, |
2092 | C<IO::AIO::MADV_RANDOM>, C<IO::AIO::MADV_WILLNEED>, |
2093 | C<IO::AIO::MADV_FREE>. |
2093 | C<IO::AIO::MADV_DONTNEED>. |
2094 | |
2094 | |
2095 | If C<$offset> is negative, counts from the end. If C<$length> is negative, |
2095 | If C<$offset> is negative, counts from the end. If C<$length> is negative, |
2096 | the remaining length of the C<$scalar> is used. If possible, C<$length> |
2096 | the remaining length of the C<$scalar> is used. If possible, C<$length> |
2097 | will be reduced to fit into the C<$scalar>. |
2097 | will be reduced to fit into the C<$scalar>. |
2098 | |
2098 | |