1STARGET_FOR_EACH_DEV(9) SCSI mid layer STARGET_FOR_EACH_DEV(9)
2
3
4
6 starget_for_each_device - helper to walk all devices of a target
7
9 void starget_for_each_device(struct scsi_target * starget, void * data,
10 void (*fn) (struct scsi_device *, void *));
11
13 starget
14 target whose devices we want to iterate over.
15
16 data
17 Opaque passed to each function call.
18
19 fn
20 Function to call on each device
21
23 This traverses over each device of starget. The devices have a
24 reference that must be released by scsi_host_put when breaking out of
25 the loop.
26
28 James Bottomley <James.Bottomley@hansenpartnership.com>
29 Author.
30
31 Rob Landley <rob@landley.net>
32 Author.
33
35Kernel Hackers Manual 2.6. June 2019 STARGET_FOR_EACH_DEV(9)