Re: Loading KEXTs dynamically
Re: Loading KEXTs dynamically
- Subject: Re: Loading KEXTs dynamically
- From: Shawn Erickson <email@hidden>
- Date: Mon, 19 Aug 2002 18:05:00 -0700
On Monday, August 19, 2002, at 12:23 PM, Sean Morrell wrote:
----- Original Message -----
From: Sean McBride <email@hidden>
To: Sean Morrell <email@hidden>;
<email@hidden>
Sent: Monday, August 19, 2002 11:25 AM
Subject: Re: Loading KEXTs dynamically
Sean Morrell (email@hidden) wrote:
Can I load and use a KEXT dynamically? If so, what is the API and
where
would I find a source example?
man kextload
You really should read the various docs about IOKit and kexts, etc.
My apologies. Let me clarify. I'm not referring to manually loading
a KEXT
from the command line. I want to dynamically load and use a KEXT
within a
driver. I do not want to load the dependent KEXT (in fact it won't
load at
boot time), until after boot has completed and the code from the KEXT
is
needed.
Use IOKits driver matching facilities. Basically the same methods that
got you main KEXT loaded can be used to trigger the matching, loading,
probing and start of other KEXTs. See the IOKit docs and look for
IOProviderClass, IO
Service::registerService, nubs, etc...
http://developer.apple.com/techpubs/macosx/Darwin/IOKit/
IOKitFundamentals/Matching/Driver_and__ce_Matching.html
http://developer.apple.com/techpubs/macosx/Darwin/Reference/Kernel/
IOService/Classes/IOService/Functions/Functions.html#registerService
I have an example that covers some of this up at OpenDarwin (still
trying to get time work on more and better examples). See
http://opendarwin.org/cgi-bin/cvsweb.cgi/proj/IOKitExamples/. Oops...
it doesn't look like I have upload that example yet, someday soon I
hope.
-Shawn
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
- Follow-Ups:
- NKEs
- From: "devdrvr.net Multi-Platform SW" <email@hidden>