[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <45F3B829.2010503@shaw.ca>
Date: Sun, 11 Mar 2007 02:04:57 -0600
From: Robert Hancock <hancockr@...w.ca>
To: Vitaliyi <imgrey@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: libata extension
Vitaliyi wrote:
> Good Day
>
> Say i want to implement extended set of ATA commands available to
> userspace for building diagnostic tools.
> I need 0x40 -- read verify and 0x32 -- write long with error handling,
> for example. I was trying ide driver through ioctl's, but seems it
> lack of functionality and full of gotchas. Furthermore it oopses
> sometimes.
>
> Is it possible to use libata for such purpose or i need to write
> separate IDE driver ?
> By the way, i'm sure it should be done in kernel space since i'm going
> to deal with some hdd manufacturer commands.
>
> P.S. I was looking through libata and ide sources and documentation
> but still dont have broad picture.
I believe you should be able to do this by sending ATA pass-through SCSI
commands into the device using SG_IO, without any kernel changes. It's
really the mechanism that's meant for this..
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@...pamshaw.ca
Home Page: http://www.roberthancock.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists