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[2]: Working backwards from a BSDname to service



At 10:48 -0600 on 7/31/03, Lance Drake wrote:
There is virtually no information in this message.
What is "myBSDName" is it "disk3"? "/dev/disk3"?

OUCH! I apologize. The bsdname is as in 'disk3s12s2'

I'm not sure if you've gotten a clear enough pointer in the right direction so I'll offer a tip or two. First question if where did you get the dev node from? Do you already have it mapped to IOService, or do you just have a dev node string?

If you don't have an io_object, you need to get one. Not sure what the "best approach is". It's pretty easy to get an ioiterator on the whole registry and go through the whole thing looking for that property (that's what I did when I needed to do this), but I'm not sure it's the "best" way. Some one else should comment on that.

Once you have a reg object, you can use the technique Garth pointed to. Alternatively, since you control the driver your looking for, you can add a property to you driver and search for that property using
"IORegistryEntrySearchCFProperty".
--
__________________________________________
Arguing with an engineer is like wrestling with a pig in mud.
After a while, you realize the pig is enjoying it.
__________________________________________
Kevin Elliott <mailto:email@hidden>
ICQ#23758827 AIM ID: teargo
iChatAV: email@hidden (video chat available)
__________________________________________
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.
References: 
 >Re[2]: Working backwards from a BSDname to service (From: Lance Drake <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.