site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Greetings all, 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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: This email sent to site_archiver@lists.apple.com