Re: Using OSKextRequestResouce from kext init routine?
Re: Using OSKextRequestResouce from kext init routine?
- Subject: Re: Using OSKextRequestResouce from kext init routine?
- From: Michael Smith <email@hidden>
- Date: Fri, 14 May 2010 23:02:21 -0700
On May 14, 2010, at 6:52 PM, Ken Hornstein wrote: It occurs to me, though, that maybe I'm making this harder than I need to. I mean, I could simply call the appropriate vnode routines to read in the file and parse it myself. In a perfect world I could parse a prefs XML file from the kernel (or have it parsed for me by a userspace daemon), but somehow I don't see that happening anytime soon :-/
That's very bad, don't do that. How big are your preferences? Can you make an I/O Kit kext for your filesystem (match on IOBSD) and get your prefs via the kext's info.plist?
Is there any reason you can't defer your registration, so use OSKextRequestResource but use the completion context rather than the context that called your start routine to complete your startup?
= Mike
-- True terror is to wake up one morning and discover that your high school class is running the country. -- Kurt Vonnegut
|
_______________________________________________
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