COMMAND

Section: (9)
Updated: 17 July 2003
Index Return to Main Contents

 

NAME

command - send scsi command to device, wait for reply  

SYNOPSIS

int command (struct scsi_cmnd * scp);  

ARGUMENTS

scp
pointer to scsi command object
 

RETURNS AN INT WITH FOUR COMPONENT BYTES

scsi_byte, msg_byte, host_byte, driver_byte (status_byte is in the lsb). A value of 0 is an unqualified success.  

REQUIRED

if struct Scsi_Host::can_queue can ever by cleared (zero) then this function is required.  

LOCKS

struct Scsi_Host::host_lock held on entry (with ``irqsave'') and is expected to be held on return.  

NOTES

Drivers tend to be dropping support for this function and supporting queuecommand instead.  

DEFINED IN

LLD  

ABOUT THIS DOCUMENT

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

If you have comments on the formatting of this manpage, then please contact Michael Still (mikal@stillhq.com).

This documentation was generated with kernel version 2.5.71.


 

Index

NAME
SYNOPSIS
ARGUMENTS
RETURNS AN INT WITH FOUR COMPONENT BYTES
REQUIRED
LOCKS
NOTES
DEFINED IN
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 02:18:27 GMT, July 17, 2003