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

NAME

6       __shost_for_each_device - iterate over all devices of a host (UNLOCKED)
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. It does _not_ take
20       a reference on the scsi_device, so the whole loop must be protected by
21       shost->host_lock.
22

NOTE

24       The only reason to use this is because you need to access the device
25       list in interrupt context. Otherwise you really want to use
26       shost_for_each_device instead.
27

AUTHORS

29       James Bottomley <James.Bottomley@hansenpartnership.com>
30           Author.
31
32       Rob Landley <rob@landley.net>
33           Author.
34
36Kernel Hackers Manual 3.10         June 2019           __SHOST_FOR_EACH_DEV(9)
Impressum