2002-12-04 09:03:39

by Paresh Sawant

[permalink] [raw]
Subject: struct to be passed to ioctl call for commanf HDIO_DRIVE_CMD

Hi!
I want to send ATA command to IDE hard disk driver using ioctl with comand "HDIO_DRIVE_CMD", to do raw write to hard disk. Which Struct i should pass to ioctl call as a third argument ?

thanks
paresh


2002-12-04 09:18:08

by Matti Aarnio

[permalink] [raw]
Subject: Re: struct to be passed to ioctl call for commanf HDIO_DRIVE_CMD

On Wed, Dec 04, 2002 at 02:38:18PM +0530, Paresh Sawant wrote:
> Hi!
> I want to send ATA command to IDE hard disk driver using ioctl
> with comand "HDIO_DRIVE_CMD", to do raw write to hard disk.
> Which Struct i should pass to ioctl call as a third argument ?

Read the source of ide_cmd_ioctl() at drivers/ide/ide-taskfile.c
Presently that is the only documentation on it.

> thanks
> paresh