Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ensuring kernel address acquisition



On Thursday, March 28, 2002, at 12:53 AM, Arun Kishan wrote:

I would like to ensure that my KEXT acquires a couple pages of the
kernel's address space within 32MB of any instruction in the kernel's text
section. What is the best approach to guaranteeing this?

I don't believe that there are any APIs in the kernel to let you even ask the question, much less expect success. Your best bet may be to preallocate the area you want as part of the DATA area of your extension. Should be an easy test to see whether the virtual addresses are "nearby" your code.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | Men are from Earth.
| Women are from Earth.
| Deal with it.
*--------------------------------------*-------------------------------*
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.