mirror of
https://github.com/ipxe/ipxe
synced 2026-02-04 23:19:30 +03:00
[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>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user