userclient not loading
userclient not loading
- Subject: userclient not loading
- From: amanda thatcher <email@hidden>
- Date: Thu, 28 Sep 2006 04:19:54 -0700 (PDT)
Hi all
I am trying to add a userclient to my driver.
The driver alone works fine. I am able to load it and
am able to call the different methods. When I try add
a user client to it, it fails to load. Please note
that my userclient has just two methods apart from the
regular methods viz. open and close which it exports
to the application.
IOReturn com_zapp_SimpleUserClient::open(void)
{
if (!fProvider)
return kIOReturnNotAttached;
if (!fProvider->open(this))
return kIOReturnExclusiveAccess;
return kIOReturnSuccess;
}
IOReturn com_zapp_SimpleUserClient::close(void)
{
if (!fProvider)
return kIOReturnNotAttached;
if (fProvider->isOpen(this))
fProvider->close(this);
return kIOReturnSuccess;
}
The code compiles but fails to load.
kextload: extension mydriver.kext appears to be valid
kextload: notice: extension mydriver.kext has debug
properties set
kextload: loading extension mydriver.kext
kextload: kmod_control/start failed for
com.zapp.mydriver; destroying kmod
kextload: a link/load error occured for kernel
extension mydriver.kext
load failed for extension mydriver.kext
(run kextload with -t for diagnostic output)
please guide(should I post to a different list)
amanda
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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