mirror of
https://github.com/ipxe/ipxe
synced 2025-12-19 11:00:27 +03:00
Add concept of transfer metadata, to be used by UDP in order to
implement sendto()/recvfrom() equivalents.
This commit is contained in:
@@ -141,10 +141,13 @@ static int posix_file_xfer_seek ( struct xfer_interface *xfer, off_t offset,
|
||||
*
|
||||
* @v xfer POSIX file data transfer interface
|
||||
* @v iobuf I/O buffer
|
||||
* @v meta Data transfer metadata, or NULL
|
||||
* @ret rc Return status code
|
||||
*/
|
||||
static int posix_file_xfer_deliver_iob ( struct xfer_interface *xfer,
|
||||
struct io_buffer *iobuf ) {
|
||||
static int
|
||||
posix_file_xfer_deliver_iob ( struct xfer_interface *xfer,
|
||||
struct io_buffer *iobuf,
|
||||
struct xfer_metadata *meta __unused ) {
|
||||
struct posix_file *file =
|
||||
container_of ( xfer, struct posix_file, xfer );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user