mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
[iobuf] Allow allocation of I/O buffers with a specified alignment offset
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -210,6 +210,8 @@ static inline void iob_populate ( struct io_buffer *iobuf,
|
||||
(iobuf) = NULL; \
|
||||
__iobuf; } )
|
||||
|
||||
extern struct io_buffer * __malloc alloc_iob_raw ( size_t len, size_t align,
|
||||
size_t offset );
|
||||
extern struct io_buffer * __malloc alloc_iob ( size_t len );
|
||||
extern void free_iob ( struct io_buffer *iobuf );
|
||||
extern void iob_pad ( struct io_buffer *iobuf, size_t min_len );
|
||||
|
||||
Reference in New Issue
Block a user