iPXE
|
Block device translator. More...
#include <stdint.h>
#include <ipxe/refcnt.h>
#include <ipxe/interface.h>
#include <ipxe/xferbuf.h>
#include <ipxe/uaccess.h>
Go to the source code of this file.
Data Structures | |
struct | block_translator |
A block device translator. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
int | block_translate (struct interface *block, userptr_t buffer, size_t size) |
Insert block device translator. More... | |
Block device translator.
Definition in file blocktrans.h.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Insert block device translator.
block | Block device interface |
buffer | Data buffer (or UNULL) |
size | Length of data buffer, or block size |
rc | Return status code |
Definition at line 223 of file blocktrans.c.
References block_translator::blksize, blktrans_block_desc, blktrans_xfer_desc, blktrans_xferbuf_operations, block, block_translator::block, buffer, block_translator::buffer, DBGC2, ENOMEM, intf_init(), intf_insert(), xfer_buffer::len, NULL, xfer_buffer::op, rc, ref_init, ref_put, block_translator::refcnt, size, user_to_phys(), block_translator::xfer, block_translator::xferbuf, and zalloc().
Referenced by http_block_read(), and http_block_read_capacity().