Re: bypassing unified buffer cache?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Not AFAIK. fcntl is a standard API. F_NOCACHE is a Mac OS X-specific extension. 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... At 11:50 -0400 27/7/06, Travis Rose wrote: Pardon my ignorance, but is there a standard API for doing this? 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Quinn