Re: loading kext from a daemon program
Re: loading kext from a daemon program
- Subject: Re: loading kext from a daemon program
- From: Rob Crawford <email@hidden>
- Date: Thu, 4 May 2006 15:46:04 -0400
I exe call that I made was:
int result = execlp("kextload", "kextload", "<path to my kext>" (char
*)0);
this does load the kext but exists my daemon program, I am guessing
because of what the documentation says that it replaces the current
process image with the new process image. What I need to do is:
1. is the kext loaded?
2. if it's not loaded load the kext and then wait for the result of
the load then continue running the daemon.
thanks,
Rob
On May 4, 2006, at 3:27 PM, Justin C. Walker wrote:
On May 4, 2006, at 12:19 , Rob Crawford wrote:
I have tried a few ways of loading it all end with the termination
of the daemon. First way I tried was a exe call to kextload, this
causes my app to terminate and but the kext does load. The other
way was using NSTask launchedTaskWithLaunchPath, with the same
result. To answer your question is the I don't know how or what
path to start looking in for for a solution.
I know squat about NS* stuff. When you say "exe call", what does
that mean?
FWIW, folks on this list try to help, so that those with questions
can get answers, learn, and perhaps contribute. One of the
important things to consider when asking for help is what might be
needed to provide that help. Imprecise or vague information just
wastes our time and yours. Code snippets can sometimes help (which
isn't a request to post your whole app); specific error messages,
or error codes returned from the kernel, are generally useful.
Any idea why your app terminates?
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
Men are from Earth.
Women are from Earth.
Deal with it.
--------
_______________________________________________
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
_______________________________________________
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