Re: darwin equivalent to linux readahead(2) function
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Dec 18, 2006, at 12:02 PM, darwin-dev-request@lists.apple.com 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): 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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: This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael Smith