* usage of WIN_SMART
@ 2004-11-24 10:49 Jagadeesh Bhaskar P
2004-11-24 12:10 ` Jan-Benedict Glaw
0 siblings, 1 reply; 4+ messages in thread
From: Jagadeesh Bhaskar P @ 2004-11-24 10:49 UTC (permalink / raw)
To: Linux C Programming
Can someone help me with an explanation for the usage of WIN_SMART
directive declared in hdreg.h in ioctl() function?
--
With regards,
Jagadeesh Bhaskar P
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: usage of WIN_SMART
2004-11-24 10:49 usage of WIN_SMART Jagadeesh Bhaskar P
@ 2004-11-24 12:10 ` Jan-Benedict Glaw
2004-11-25 4:27 ` Jagadeesh Bhaskar P
0 siblings, 1 reply; 4+ messages in thread
From: Jan-Benedict Glaw @ 2004-11-24 12:10 UTC (permalink / raw)
To: Linux C Programming
[-- Attachment #1: Type: text/plain, Size: 998 bytes --]
On Wed, 2004-11-24 16:19:57 +0530, Jagadeesh Bhaskar P <jbhaskar@hclinsys.com>
wrote in message <1101293397.3787.34.camel@myLinux>:
> Can someone help me with an explanation for the usage of WIN_SMART
> directive declared in hdreg.h in ioctl() 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
--
Jan-Benedict Glaw jbglaw@lug-owl.de . +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));
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: usage of WIN_SMART
2004-11-24 12:10 ` Jan-Benedict Glaw
@ 2004-11-25 4:27 ` Jagadeesh Bhaskar P
2004-11-25 7:08 ` Glynn Clements
0 siblings, 1 reply; 4+ messages in thread
From: Jagadeesh Bhaskar P @ 2004-11-25 4:27 UTC (permalink / raw)
To: Jan-Benedict Glaw; +Cc: Linux C Programming
I meant how to use WIN_SMART in the code? Not its uses or advantages!!
Can someone help me with that??
On Wed, 2004-11-24 at 17:40, Jan-Benedict Glaw wrote:
> On Wed, 2004-11-24 16:19:57 +0530, Jagadeesh Bhaskar P <jbhaskar@hclinsys.com>
> wrote in message <1101293397.3787.34.camel@myLinux>:
> > Can someone help me with an explanation for the usage of WIN_SMART
> > directive declared in hdreg.h in ioctl() 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
--
Jagadeesh Bhaskar P <jbhaskar@hclinsys.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: usage of WIN_SMART
2004-11-25 4:27 ` Jagadeesh Bhaskar P
@ 2004-11-25 7:08 ` Glynn Clements
0 siblings, 0 replies; 4+ messages in thread
From: Glynn Clements @ 2004-11-25 7:08 UTC (permalink / raw)
To: Jagadeesh Bhaskar P; +Cc: Jan-Benedict Glaw, Linux C Programming
Jagadeesh Bhaskar P wrote:
> I meant how to use WIN_SMART in 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: 250-1752@mcimail.com.
--
Glynn Clements <glynn@gclements.plus.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-11-25 7:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-24 10:49 usage of WIN_SMART Jagadeesh Bhaskar P
2004-11-24 12:10 ` Jan-Benedict Glaw
2004-11-25 4:27 ` Jagadeesh Bhaskar P
2004-11-25 7:08 ` Glynn Clements
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).