starget_for_each_device9
Helper to walk all devices of a target
Arguments
starget
target whose devices we want to iterate over.
data
Opaque passed to each function call.
fn
Function to call on each device
Overview
This traverses over each device of starget. The devices have a reference that must be released by scsi_host_put when breaking out of the loop.
History
- Debian 9 (Stretch): the text shown here
- Debian 8 (Jessie)
- Debian 7 (Wheezy)
- Debian 6.0 (Squeeze)
- Debian 5.0 (Lenny)