usage of WIN_SMART
Can someone help me with an explanation for the usage of WIN_SMART directive declared in hdreg.h in ioctl() function?
Signature · 3 lines
With regards, Jagadeesh Bhaskar P
On Wed, 2004-11-24 16:19:57 +0530, Jagadeesh Bhaskar P <[email protected]> wrote in message <1101293397.3787.34.camel@myLinux>:
Quoted 2 lines
Can someone help me with an explanation for the usage of
WIN_SMARTdirective declared inhdreg.hinioctl()function?
Just look at some users of WIN_SMART. Found these with Google:
Function ataReadSmartValues() in
http://cvs.sourceforge.net/viewcvs.py/smartmontools/sm5/atacmds.c?rev=1.2
Function smart_read_values() in
http://www.linux-ide.org/smart/ide-smart.c
There are other examples, too. Of course, you can only use code out of these if your software is going to be available under GNU GPL ...
MfG, JBG
Signature · 4 lines
Jan-Benedict Glaw [email protected] . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
I meant how to use WIN_SMART in the code? Not its uses or advantages!!
Can someone help me with that??
Quoted 17 lines · Jan-Benedict Glaw
On Wed, 2004-11-24 16:19:57 +0530, Jagadeesh Bhaskar P <[email protected]> wrote in message <1101293397.3787.34.camel@myLinux>:
Quoted 2 lines
Can someone help me with an explanation for the usage of
WIN_SMARTdirective declared inhdreg.hinioctl()function?Just look at some users of
WIN_SMART. Found these with Google:Function
ataReadSmartValues()in
http://cvs.sourceforge.net/viewcvs.py/smartmontools/sm5/atacmds.c?rev=1.2Function
smart_read_values()in
http://www.linux-ide.org/smart/ide-smart.cThere are other examples, too. Of course, you can only use code out of these if your software is going to be available under GNU GPL ...
MfG, JBG
Signature · 1 line
Jagadeesh Bhaskar P <[email protected]>
Quoted 3 lines · Jagadeesh Bhaskar P
I meant how to use
WIN_SMARTin the code? Not its uses or advantages!!Can someone help me with that??
Look at the source code of an existing program which uses it, such as those to which Jan-Benedict referred.
Also, within a few clicks of the linux-ide.org URL, I found:
http://www.linux-ide.org/smart/smartmontools-5.0/
which says:
== REFERENCES ==
If you need help in understanding the output of smartctl, a good place to start is to read Section 8.41 of the AT Attachment with Packet Interface-5 (ATA/ATAPI-5) specification. This documents the S.M.A.R.T. functionality which the smartmontools utilities provide access to. You can find Revision 1 of this document at:
http://www.t13.org/project/d1321r1c.pdf
Future versions of the specifications (ATA/ATAPI-6 and ATA/ATAPI-7) can be obtained from:
http://www.t13.org/#FTP_site
Later revisions (2, 3) of the ATA/ATAPI-5 specification are also available there.
The functioning of S.M.A.R.T. is also described by the SFF-8035i revision 2 specification. This is a publication of the Small Form Factors Committee, and can be obtained from SFF Committee, 14426 Black Walnut Ct., Saratoga, CA 95070, USA.
SFF FaxAccess: (408) 741-1600
Ph: (408) 867-6630
Fax: (408) 867-2115
E-Mail: [email protected].
Signature · 1 line
Glynn Clements <[email protected]>