Re: Identify IDE device?

Dave Jones
2001-10-31T01:46:31Z

On 30 Oct 2001, Mark Atwood wrote:

> Is there a way, via an ioctl call, or something to identify what
> specific IDE hard disk or other IDE device is hooked up to the IDE
> controller?

HDIO_GET_IDENTITY is the ioctl you seek.

Grab the hdparm source for an example of how to use this and other
IDE related ioctls.

regards,

Dave.

--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs