Re: ioctl HDIO_GET_IDENTITY
Re: ioctl HDIO_GET_IDENTITY
- Subject: Re: ioctl HDIO_GET_IDENTITY
- From: Garth Cummings <email@hidden>
- Date: Wed, 12 Oct 2005 09:06:51 -0700
Hi Jeshua,On Oct 11, 2005, at 11:04 PM, Jeshua Lacock wrote:
Greetings all,
Does anyone know if Darwin ioctl supports the "HDIO_GET_IDENTITY" call - or know of an appropriate substitute?
It looks like you want information about an ATA drive that is returned from the IDENTIFY DEVICE command. On Mac OS X this information is available from the I/O Registry without having to send any commands to the device yourself.
If you're just interested in the information you'd get from a SCSI INQUIRY or an ATA IDENTIFY DEVICE command, much of that information is already published in the I/O Registry and thus is readable by applications without sending commands to the device in question. You can use the application /Developer/Applications/IORegistryExplorer or the command line tool ioreg to see if the information you need is in the I/O Registry. There are a number of code samples showing how to search and retrieve properties from the I/O Registry such as CDROMSample and the samples in /Developer/Examples/IOKit.
HTH, |
_______________________________________________
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