summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2012-08-29 17:13:56 +0200
committerMichael Brown2012-08-31 22:22:52 +0200
commit96be171be572496f0ee4c1cfdc9c507b97caba00 (patch)
treebf083d74ada7a9d0439cd36937e4c03592d4e761 /src/include/ipxe
parent[malloc] Allow allocation of memory with a specified alignment offset (diff)
downloadipxe-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.h2
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 );