On Monday, August 19, 2002, at 12:23 PM, Sean Morrell wrote: ----- Original Message ----- From: Sean McBride <sean.mcbride@matrox.com> To: Sean Morrell <jseanm@cablelynx.com>; <darwin-kernel@lists.apple.com> Sent: Monday, August 19, 2002 11:25 AM Subject: Re: Loading KEXTs dynamically Sean Morrell (jseanm@cablelynx.com) 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, IOService::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 | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.