other versions
ATA_DEV_NEXT(9) | libata Library | ATA_DEV_NEXT(9) |
NAME¶
ata_dev_next - device iteration helper
SYNOPSIS¶
struct ata_device * ata_dev_next(struct ata_device * dev, struct ata_link * link, enum ata_dev_iter_mode mode);
ARGUMENTS¶
struct ata_device * dev
the previous device, NULL to start
struct ata_link * link
ATA link containing devices to iterate
enum ata_dev_iter_mode mode
iteration mode, one of ATA_DITER_*
DESCRIPTION¶
LOCKING: Host lock or EH context.
RETURN¶
Pointer to the next device.
AUTHOR¶
Jeff Garzik
Author.
COPYRIGHT¶
September 2017 | Kernel Hackers Manual 4.12 |