|
iPXE
|
Block devices. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| int | block_read (struct interface *control, struct interface *data, uint64_t lba, unsigned int count, void *buffer, size_t len) |
| Read from block device. | |
| int | block_write (struct interface *control, struct interface *data, uint64_t lba, unsigned int count, void *buffer, size_t len) |
| Write to block device. | |
| int | block_read_capacity (struct interface *control, struct interface *data) |
| Read block device capacity. | |
| void | block_capacity (struct interface *intf, struct block_device_capacity *capacity) |
| Report block device capacity. | |
Block devices.
Definition in file blockdev.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| int block_read | ( | struct interface * | control, |
| struct interface * | data, | ||
| uint64_t | lba, | ||
| unsigned int | count, | ||
| void * | buffer, | ||
| size_t | len ) |
Read from block device.
| control | Control interface |
| data | Data interface |
| lba | Starting logical block address |
| count | Number of logical blocks |
| buffer | Data buffer |
| len | Length of data buffer |
| rc | Return status code |
Definition at line 48 of file blockdev.c.
References block_read(), block_read_TYPE, buffer, control, count, data, dest, EOPNOTSUPP, intf_get_dest_op, intf_object(), intf_put(), lba, len, op, and rc.
Referenced by block_read(), and sandev_read().
| int block_write | ( | struct interface * | control, |
| struct interface * | data, | ||
| uint64_t | lba, | ||
| unsigned int | count, | ||
| void * | buffer, | ||
| size_t | len ) |
Write to block device.
| control | Control interface |
| data | Data interface |
| lba | Starting logical block address |
| count | Number of logical blocks |
| buffer | Data buffer |
| len | Length of data buffer |
| rc | Return status code |
Definition at line 79 of file blockdev.c.
References block_write(), block_write_TYPE, buffer, control, count, data, dest, EOPNOTSUPP, intf_get_dest_op, intf_object(), intf_put(), lba, len, op, and rc.
Referenced by block_write(), and sandev_write().
Read block device capacity.
| control | Control interface |
| data | Data interface |
| rc | Return status code |
Definition at line 106 of file blockdev.c.
References block_read_capacity(), block_read_capacity_TYPE, control, data, dest, EOPNOTSUPP, intf_get_dest_op, intf_object(), intf_put(), op, and rc.
Referenced by block_read_capacity(), and sandev_command_read_capacity().
| void block_capacity | ( | struct interface * | intf, |
| struct block_device_capacity * | capacity ) |
Report block device capacity.
| intf | Interface |
| capacity | Block device capacity |
Definition at line 130 of file blockdev.c.
References block_capacity(), block_capacity_TYPE, dest, interface::intf, intf_get_dest_op, intf_object(), intf_put(), and op.
Referenced by atacmd_identify_done(), blktrans_close(), block_capacity(), and scsicmd_read_capacity_done().