1__STARGET_FOR_EACH_D(9) SCSI mid layer __STARGET_FOR_EACH_D(9)
2
3
4
6 __starget_for_each_device - helper to walk all devices of a target
7 (UNLOCKED)
8
10 void __starget_for_each_device(struct scsi_target * starget,
11 void * data,
12 void (*fn) (struct scsi_device *, void *));
13
15 starget
16 target whose devices we want to iterate over.
17
18 data
19 parameter for callback fn()
20
21 fn
22 callback function that is invoked for each device
23
25 This traverses over each device of starget. It does _not_ take a
26 reference on the scsi_device, so the whole loop must be protected by
27 shost->host_lock.
28
30 The only reason why drivers would want to use this is because they need
31 to access the device list in irq context. Otherwise you really want to
32 use starget_for_each_device instead.
33
35 James Bottomley <James.Bottomley@hansenpartnership.com>
36 Author.
37
38 Rob Landley <rob@landley.net>
39 Author.
40
42Kernel Hackers Manual 3.10 June 2019 __STARGET_FOR_EACH_D(9)