Re: Loading Kernel Extension
Re: Loading Kernel Extension
- Subject: Re: Loading Kernel Extension
- From: Michael Smith <email@hidden>
- Date: Tue, 11 Aug 2009 19:56:17 -0700
What is the reason why you don't want to use kextload?
I generally prefer not invoking a utility from within my own program unless I have to. It strikes me as an ugly way of performing a task.
Why?
I can understand if you are coming from something like the Linux world, where contracts between various components of the system are weak and inconsistent, but you need to understand that MacOS X is not Linux in this case.
Under MacOS X, privilege separation mechanisms like RPC and helper tool execution are widely used in conjunction with strong contractual guarantees about interfaces. Invoking helper tools is also something that's easy to do from a wide variety of programming environments, and the inter-component dependencies are kept to an absolute minimum as an added bonus. If there is no other way then I'll invoke kextload, I was just hoping for an overlooked API.
posix_spawn(2).
Note also this excerpt from the kextload(8) manpage:
kextload is a formal interface for kext loading in all versions of Darwin OS and Mac OS X. Software and installers can rely on its presence and invoke it in order to load kexts.
= Mike
-- Ars longa, vita brevis, occasio praeceps, experimentum periculosum, iudicium difficile -- Hippocrates
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden