1. NAME

scsi_device_set_state - Take the given device through the device state model.

2. SYNOPSIS

int scsi_device_set_state(struct scsi_device *  sdev , enum scsi_device_state  state );

3. ARGUMENTS

sdev
    scsi device to change the state of.

state
    state to change to.

4. DESCRIPTION

Returns zero if unsuccessful or an error if the requested transition is illegal.

5. AUTHORS

James Bottomley < >
    Author.

Rob Landley < >
    Author.

6. COPYRIGHT