Re: programmatically loading and unloading drivers
Re: programmatically loading and unloading drivers
- Subject: Re: programmatically loading and unloading drivers
- From: Amanda Walker <email@hidden>
- Date: Mon, 31 Oct 2011 13:22:39 -0400
On Oct 31, 2011, at 1:16 PM, Joel Reymont wrote:
> I figure using the API will be faster and more robust in the presence of errors.
Execv() of kextload is not likely to be appreciably faster than calling an SPI directly--most of the time is I/O time scanning and patching/linking the kext bundle, last I checked. And since it's not a public API, I can't think of any reason for the latter…
That said, reading the source for kextload, kextstat, etc. can be very informative. Doing so is what convinced me I should just call out to them :-).
--Amanda
_______________________________________________
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