starget_for_each_device(9)

starget_for_each_device9

Helper to walk all devices of a target

Usage

void starget_for_each_device(struct scsi_target * starget, void * data, void (*fn) (struct scsi_device *, void *));

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.

Releases

5 releases since Debian 5.0 (Lenny); the text changed 4 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9

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.