shost_for_each_device(9)

shost_for_each_device9

Iterate over all devices of a host

Usage

shost_for_each_device(sdev, shost);

Arguments

sdev

the struct scsi_device to use as a cursor

shost

the struct scsi_host to iterate over

Overview

Iterator that returns each device attached to shost. This loop takes a reference on each device and releases it at the end. If you break out of the loop, you must call scsi_device_put(sdev).

Releases

5 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9

Authors

James Bottomley <[email protected]>

Author.

Rob Landley <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.