mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +03:00
[xferbuf] Add xfer_buffer() to provide direct access to underlying buffer
Allow data transfer buffer users to provide direct access to their underlying data transfer buffer. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -12,6 +12,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
#include <stdint.h>
|
||||
#include <ipxe/iobuf.h>
|
||||
#include <ipxe/uaccess.h>
|
||||
#include <ipxe/interface.h>
|
||||
#include <ipxe/xfer.h>
|
||||
|
||||
/** A data transfer buffer */
|
||||
@@ -97,4 +98,8 @@ extern int xferbuf_deliver ( struct xfer_buffer *xferbuf,
|
||||
struct io_buffer *iobuf,
|
||||
struct xfer_metadata *meta );
|
||||
|
||||
extern struct xfer_buffer * xfer_buffer ( struct interface *intf );
|
||||
#define xfer_buffer_TYPE( object_type ) \
|
||||
typeof ( struct xfer_buffer * ( object_type ) )
|
||||
|
||||
#endif /* _IPXE_XFERBUF_H */
|
||||
|
||||
Reference in New Issue
Block a user