Link iteration helper
struct ata_link * ata_link_next(struct ata_link * link, struct ata_port * ap, enum ata_link_iter_mode mode);
link
the previous link, NULL to start
ap
ATA port containing links to iterate
mode
iteration mode, one of ATA_LITER_*
Host lock or EH context.
Pointer to the next link.
Jeff Garzik
Author.