Re: IOServiceOpen fails
Re: IOServiceOpen fails
- Subject: Re: IOServiceOpen fails
- From: Michael Smith <email@hidden>
- Date: Fri, 13 Oct 2006 01:43:05 -0700
On Oct 12, 2006, at 9:38 PM, sanjay yaragatti wrote:
I have written a kernel driver.Now want to talk to it
through a userclient.My user space application is a
cocoa application which calls IOServiceOpen() to
establish a connection with the userclient.The call
too IOServiceOpen fails and returning a value of hex
value of 0xe00002c7 (-536870201 in decimal).But the
This is kIOReturnUnsupported.
Have you implemented a UserClient subclass and registered it?
For example:
// set up our userClientClass name, used when user clients
// request a connection to the driver
userClient = OSSymbol::withCStringNoCopy
("com_company_MyUserClient");
if (userClient == NULL) {
error("could not allocate userClient name");
goto fail;
}
setProperty(gIOUserClientClassKey, (OSObject *)userClient);
userClient->release();
= Mike
_______________________________________________
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