1SHOST_FOR_EACH_DEVIC(9)         SCSI mid layer         SHOST_FOR_EACH_DEVIC(9)
2
3
4

NAME

6       shost_for_each_device - iterate over all devices of a host
7

SYNOPSIS

9       shost_for_each_device(sdev, shost);
10

ARGUMENTS

12       sdev
13           the struct scsi_device to use as a cursor
14
15       shost
16           the struct scsi_host to iterate over
17

DESCRIPTION

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

AUTHORS

24       James Bottomley <James.Bottomley@hansenpartnership.com>
25           Author.
26
27       Rob Landley <rob@landley.net>
28           Author.
29
31Kernel Hackers Manual 3.10         June 2019           SHOST_FOR_EACH_DEVIC(9)
Impressum