Re: fcntl() equivelent for kFSForceReadMask?
Re: fcntl() equivelent for kFSForceReadMask?
- Subject: Re: fcntl() equivelent for kFSForceReadMask?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 29 Oct 2012 16:59:47 +0000
On 29 Oct 2012, at 16:12, James Bucanek <email@hidden> wrote:
> I'm not sure how I would apply madvise() to the data of an open file. It appears to only deal with memory addresses and VM swap management.
You would have to open the file and memory map it. On Mac OS X virtual memory and the file system cache are the same thing (hence the "Unified" in "Unified Buffer Cache").
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden