diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-03-05 12:50:25 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-03-05 13:17:35 +0000 |
commit | 8da22a59eecda30087504efa2153ceddacda08fd (patch) | |
tree | 1bdcb92b77150b7f4d239f85dfb95b8127219e59 /src/include/ipxe/sanboot.h | |
parent | 37edfea72be8d202d2590c89e9b8416f3c615216 (diff) | |
download | ipxe-8da22a59eecda30087504efa2153ceddacda08fd.tar.gz |
[block] Allow for iteration over SAN device list in drive number order
Maintain the SAN device list in order of drive number, and provide
sandev_next() to locate the first SAN device at or above a given drive
number.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/sanboot.h')
-rw-r--r-- | src/include/ipxe/sanboot.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/sanboot.h b/src/include/ipxe/sanboot.h index b163a94b8..a1b6d7f3d 100644 --- a/src/include/ipxe/sanboot.h +++ b/src/include/ipxe/sanboot.h @@ -234,6 +234,7 @@ static inline int sandev_needs_reopen ( struct san_device *sandev ) { } extern struct san_device * sandev_find ( unsigned int drive ); +extern struct san_device * sandev_next ( unsigned int drive ); extern int sandev_reopen ( struct san_device *sandev ); extern int sandev_reset ( struct san_device *sandev ); extern int sandev_read ( struct san_device *sandev, uint64_t lba, |