carta
starget_for_each_device(9)

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)

Authors

James Bottomley <[email protected]>

Author.

Rob Landley <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.