Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I export multiple user client objects on my kext?



G'day, Jim.

As Chris said the default implementation of newUserClient isn't real smart. If you want multiple interfaces automatically you could publish multiple nubs which share a single open-exclusive. But it isn't really worth the effort, overriding newUserClient is a better bet.

I've just been looking at IOService.cpp::newUserClient(). You will basically have to copy and paste it. Which is a shame, it should have a call-down to such as const OSSymbol * IOService::getUserClientClassForType(UInt32 type) (I guess I only have myself to blame there, sigh). At least the code is pretty simple.

Good luck

Godfrey

On 2009-11-04, at 6:17 , Chris Sarcone wrote:

Jim --

If I put an array in my info.plist for IOUserClientClass can I export multiple user client objects so that I can have different interfaces on my kext to support older or different word size interfaces in this way?

I don't think so. I believe IOKit will only look for one class name to use. However, you can override newUserClient() and use the 'type' parameter to instantiate different classes.


-- Chris

------------------
6 Infinite Loop
M/S 306-2MS
Cupertino CA 95014
phone: (408) 974-4033
fax:   (408) 862-7577
email: email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-drivers mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden
References: 
 >Can I export multiple user client objects on my kext? (From: Jim O'Connor <email@hidden>)
 >Re: Can I export multiple user client objects on my kext? (From: Chris Sarcone <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.