readahead(2) - Linux

Ivan Voras ivoras at
Mon Mar 3 13:49:43 UTC 2008

Ed Schouten wrote:
> * carlos neira <cneirabustos at> wrote:
>> is there an equivalent of  readahead syscall in linux , for  freebsd ?.
>> i was looking at ,  and it needs this .
> Maybe a mmap(), followed by a madvise()?

Or an open() followed by a read() loop? :) If the goal is to preload the
files, this one is certainly going to do it :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-hackers mailing list