Re: bypassing unified buffer cache?
Re: bypassing unified buffer cache?
- Subject: Re: bypassing unified buffer cache?
- From: Quinn <email@hidden>
- Date: Thu, 27 Jul 2006 16:59:41 +0100
At 11:50 -0400 27/7/06, Travis Rose wrote:
Pardon my ignorance, but is there a standard API for doing this?
Not AFAIK.
fcntl is a standard API.
F_NOCACHE is a Mac OS X-specific extension.
Getting the system's page size can be done via a standard API
(<x-man-page://3/sysconf> with the _SC_PAGESIZE selector (which,
incidentally, isn't listed on our man page)).
Allocating memory on a page boundary can be done with
<x-man-page://3/valloc> (which is a BSDism; I'm sure there are
alternatives on non-BSD systems; if all else fails, allocate an extra
page and round it yourself).
My other question: is this code going to be platform-specific, or is
it making calls into BSD-kernel which potentially can map to linux?
I believe that Linux has similar functionality, but I don't know them
off the top of my head.
S+E
--
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.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden