Re: darwin equivalent to linux readahead(2) function
Re: darwin equivalent to linux readahead(2) function
- Subject: Re: darwin equivalent to linux readahead(2) function
- From: Michael Smith <email@hidden>
- Date: Tue, 26 Dec 2006 13:15:30 -0800
On Dec 18, 2006, at 12:02 PM, email@hidden wrote:
Hello list,
I was wondering if there exists a darwin equivalent to Linux
readahead(2) function.
<http://www.die.net/doc/linux/man/man2/readahead.2.html>
This is used to "populates the page cache with data from a file so
that subsequent reads from that file will not block on disk I/O".
I've been googling for readahead darwin, readahead bsd etc. but found
nothing relevant :-(
Any pointer to a function or even more complicated method to achieve
this goal is welcome.
See fcntl(2):
F_RDADVISE Issue an advisory read async with no copy to
user.
...
The F_RDADVISE command operates on the following structure
which holds
information passed from the user to the system:
struct radvisory {
off_t ra_offset; /* offset into the file */
int ra_count; /* size of the read */
};
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden