• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: IOServiceOpen fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: IOServiceOpen fails
      • From: Quinn <email@hidden>
References: 
 >IOServiceOpen fails (From: sanjay yaragatti <email@hidden>)

  • Prev by Date: IOServiceOpen fails
  • Next by Date: Re: IOServiceOpen fails
  • Previous by thread: IOServiceOpen fails
  • Next by thread: Re: IOServiceOpen fails
  • Index(es):
    • Date
    • Thread