Re: what can i get from io_registry_entry_t for a hard disk
Re: what can i get from io_registry_entry_t for a hard disk
- Subject: Re: what can i get from io_registry_entry_t for a hard disk
- From: Chris Sarcone <email@hidden>
- Date: Wed, 13 Feb 2008 10:51:39 -0800
Nick --But as the GDB tells me this dictionary contains 17 key-value pairs.
I want to know what other info I can get from this dictionary?
In code, you can CFShow(dict) to display the dictionary on stdout. In GDB, you can do the following:
(gdb) call (void)CFShow(dict)
Could it give me the hard disk model number, serial number, or any info about the volumes and their paths that this disk contains etc?
No. An IOMedia object might have multiple providers (RAID) or be part of an Xsan volume. You can learn more by iterating the registry entries which are parents of that node and looking for properties that indicate certain attributes. Some attributes are defined in <IOKit/storage/IOStorageDeviceCharacteristics.h> and <IOKit/storage/IOStorageProtocolCharacteristics.h>
HTH,
-- 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-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden