.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "STARGET_FOR_EACH_DEVICE" "9" "09 October 2005" "" "" .SH NAME starget_for_each_device \- helper to walk all devices of a target .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void starget_for_each_device (struct scsi_target * \fIstarget\fB, void * \fIdata\fB, void (*\fIfn\fB) struct scsi_device *, void *); \fR .SH "ARGUMENTS" .TP \fB\fIstarget\fB\fR target whose devices we want to iterate over. .TP \fB\fIdata\fB\fR -- undescribed -- .TP \fB\fIfn\fB\fR -- undescribed -- .SH "DESCRIPTION" .PP This traverses over each devices of \fIshost\fR\&. The devices have a reference that must be released by scsi_host_put when breaking out of the loop.