Re: Exemple of code for cmd " scsi start "

Patrick Mansfield
2003-09-15T16:18:43Z

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