ioctl HDIO_GET_IDENTITY
ioctl HDIO_GET_IDENTITY
- Subject: ioctl HDIO_GET_IDENTITY
- From: Jeshua Lacock <email@hidden>
- Date: Wed, 12 Oct 2005 00:04:13 -0600
Greetings all,
Does anyone know if Darwin ioctl supports the "HDIO_GET_IDENTITY" call
- or know of an appropriate substitute?
Short of that, where might I find documentation for ioctl on Darwin? I
would like to find a complete list of supported calls...
I am attempting to port HAL (hardware abstraction layer) to Darwin,
here is the relevant code:
int drive_id_probe_ata(struct drive_id *id)
{
struct hd_driveid ata_id;
if (ioctl(id->fd, HDIO_GET_IDENTITY, &ata_id) != 0)
return -1;
set_str((char *) id->model, ata_id.model, 40);
set_str((char *) id->serial, ata_id.serial_no, 20);
set_str((char *) id->firmware, ata_id.fw_rev, 8);
return 0;
}
Thanks,
Jeshua Lacock ___________________________
Programmer/Owner Phone: 877.240.1364
http://OpenOSX.com Fax: 415.462.6211
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_______________________________________________
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