SCSI_INTERNAL_DEVICE_BLOCK

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

scsi_internal_device_block - internal function to put a device  

SYNOPSIS

"SYNOPSIS"

int scsi_internal_device_block (struct scsi_device * sdev);  

ARGUMENTS

sdev
device to block
 

DESCRIPTION

Block request made by scsi lld's to temporarily stop all scsi commands on the specified device. Called from interrupt or normal process context.

Returns zero if successful or error if not  

DESCRIPTION

Block request made by scsi lld's to temporarily stop all scsi commands on the specified device. Called from interrupt or normal process context.

Returns zero if successful or error if not  

NOTES

This routine transitions the device to the SDEV_BLOCK state (which must be a legal transition). When the device is in this state, all commands are deferred until the scsi lld reenables the device with scsi_device_unblock or device_block_tmo fires. This routine assumes the host_lock is held on entry.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
DESCRIPTION
NOTES

This document was created by man2html, using the manual pages.
Time: 00:02:45 GMT, October 09, 2005