summaryrefslogtreecommitdiffstats
path: root/src/interface
diff options
context:
space:
mode:
authorMichael Brown2025-04-24 18:11:30 +0200
committerMichael Brown2025-04-24 18:11:30 +0200
commit2f11f466e6b6cb47ac3b703b145e01f87bf8092e (patch)
tree48ca106e7c8d7f42c504af9447dff713099d1339 /src/interface
parent[uaccess] Remove now-obsolete memchr_user() (diff)
downloadipxe-2f11f466e6b6cb47ac3b703b145e01f87bf8092e.tar.gz
ipxe-2f11f466e6b6cb47ac3b703b145e01f87bf8092e.tar.xz
ipxe-2f11f466e6b6cb47ac3b703b145e01f87bf8092e.zip
[block] Remove userptr_t from block device abstraction
Simplify the block device code by assuming that all read/write buffers are directly accessible via pointer dereferences. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/efi/efi_block.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interface/efi/efi_block.c b/src/interface/efi/efi_block.c
index 94e2aae06..aa5ec4e0f 100644
--- a/src/interface/efi/efi_block.c
+++ b/src/interface/efi/efi_block.c
@@ -95,8 +95,9 @@ struct efi_block_data {
static int efi_block_rw ( struct san_device *sandev, uint64_t lba,
void *data, size_t len,
int ( * sandev_rw ) ( struct san_device *sandev,
- uint64_t lba, unsigned int count,
- userptr_t buffer ) ) {
+ uint64_t lba,
+ unsigned int count,
+ void *buffer ) ) {
struct efi_block_data *block = sandev->priv;
unsigned int count;
int rc;