public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: phil <philippe.aubry1@mageos.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: Exemple of code for cmd " scsi start "
Date: Mon, 15 Sep 2003 09:18:18 -0700	[thread overview]
Message-ID: <20030915091818.A31706@beaverton.ibm.com> (raw)
In-Reply-To: <3F64E3DA.4090900@mageos.com>; from philippe.aubry1@mageos.com on Sun, Sep 14, 2003 at 11:55:38PM +0200

On Sun, Sep 14, 2003 at 11:55:38PM +0200, phil wrote:
> 
> Hello,
> I search an exemple in C for send a command to a disk, the scsi command 
>   i need is a start command.
> Where can i find a exemple with source code.

For user level code:

http://www.torque.net/sg/#Utilities:%20sg_utils%20and%20sg3_utils

Check out sg_start.c.

Kernel code - drivers/kernel/sd.c uses START_STOP, other code in sd.c and
scsi_scan.c use various SCSI commands.

-- Patrick Mansfield

      reply	other threads:[~2003-09-15 16:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <004801c390bd$55cca700$f8e4a7c8@bsb.virtua.com.br>
2003-09-14 21:55 ` Exemple of code for cmd " scsi start " phil
2003-09-15 16:18   ` Patrick Mansfield [this message]

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=20030915091818.A31706@beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=philippe.aubry1@mageos.com \
    /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