summaryrefslogtreecommitdiffstats
path: root/src/core/blockdev.c
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/core/blockdev.c
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/core/blockdev.c')
-rw-r--r--src/core/blockdev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/blockdev.c b/src/core/blockdev.c
index c219d9673..3513caafa 100644
--- a/src/core/blockdev.c
+++ b/src/core/blockdev.c
@@ -45,8 +45,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
* @ret rc Return status code
*/
int block_read ( struct interface *control, struct interface *data,
- uint64_t lba, unsigned int count,
- userptr_t buffer, size_t len ) {
+ uint64_t lba, unsigned int count, void *buffer,
+ size_t len ) {
struct interface *dest;
block_read_TYPE ( void * ) *op =
intf_get_dest_op ( control, block_read, &dest );
@@ -76,8 +76,8 @@ int block_read ( struct interface *control, struct interface *data,
* @ret rc Return status code
*/
int block_write ( struct interface *control, struct interface *data,
- uint64_t lba, unsigned int count,
- userptr_t buffer, size_t len ) {
+ uint64_t lba, unsigned int count, void *buffer,
+ size_t len ) {
struct interface *dest;
block_write_TYPE ( void * ) *op =
intf_get_dest_op ( control, block_write, &dest );