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



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'

What is dictRef? The entry count is useless. What's in it? Use CFShow to dump out a summary.

Again - sorry - I was trying not to include enough info to give the gist of what was the situation but not too much detail in order to avoid boorish tedium on the part of the reader.

A 'dictRef' is of the type returned by the 'IOBSDNameMatching' call. The var 'service' is as shown to be 'io_service_t'. The count is included to show the dictRef is not an empty vessel.

By 'reasonable number', I mean that of you look at the values returned by the various calls that return io_registry_entry_t values, it was in a range you'd see coming back such as '18735' - as opposed to zero or 0xFFFBFFDA.

What is service? "a reasonable number" means what? a pointer in the heap? Use IORegistryEntryCreateCFProperties to get it's properties to see if it's really what you wanted. You can also use IORegistryEntryGetLocationInPlane to see if the ioservice has the right path.

Your feedback is appreciated. I see I have not done a good job of explaining my problem.

Do have a great day!

Lance Drake
_______________________________________________
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: Working backwards from a BSDname to service (From: Shantonu Sen <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.