diff options
| author | Michael Brown | 2012-08-29 17:13:56 +0200 |
|---|---|---|
| committer | Michael Brown | 2012-08-31 22:22:52 +0200 |
| commit | 96be171be572496f0ee4c1cfdc9c507b97caba00 (patch) | |
| tree | bf083d74ada7a9d0439cd36937e4c03592d4e761 /src/include/ipxe | |
| parent | [malloc] Allow allocation of memory with a specified alignment offset (diff) | |
| download | ipxe-96be171be572496f0ee4c1cfdc9c507b97caba00.tar.gz ipxe-96be171be572496f0ee4c1cfdc9c507b97caba00.tar.xz ipxe-96be171be572496f0ee4c1cfdc9c507b97caba00.zip | |
[iobuf] Allow allocation of I/O buffers with a specified alignment offset
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
| -rw-r--r-- | src/include/ipxe/iobuf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/iobuf.h b/src/include/ipxe/iobuf.h index 8134ae76a..65a8e80da 100644 --- a/src/include/ipxe/iobuf.h +++ b/src/include/ipxe/iobuf.h @@ -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 ); |
