linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: MasthanUsha <d_mastan@yahoo.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl
Date: Mon, 12 Mar 2007 08:54:38 -0400	[thread overview]
Message-ID: <45F54D8E.9040902@torque.net> (raw)
In-Reply-To: <9429164.post@talk.nabble.com>

MasthanUsha wrote:
> 
> Hi All,
>  
> Any one og you have any idea on scsi inquiry command ?
>  
> I want to send an Inquiry command to a scsi device through sd path (.i.e.
> /dev/sda or /dev/sdb) by using SG_IO ioctl. Please explain me...

If you look at http://www.torque.net/sg/sg3_utils.html
and fetch a tarball (e.g. sg3_utils-1.23.tgz) then have
a look at the examples/sg_simple1.c file.

Doug Gilbert


  reply	other threads:[~2007-03-12 12:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12  6:28 How to send inquiry command to thorugh sd path (i.e. /dev/sda) by using SG_IO ioctl MasthanUsha
2007-03-12 12:54 ` Douglas Gilbert [this message]
2007-06-08  7:18 ` sandip shete
     [not found] <982174.32681.qm@web32912.mail.mud.yahoo.com>
2007-03-12 15:28 ` Douglas Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45F54D8E.9040902@torque.net \
    --to=dougg@torque.net \
    --cc=d_mastan@yahoo.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).