mirror of
https://github.com/ipxe/ipxe
synced 2025-12-18 02:20:19 +03:00
Make "struct buffer"s reusable between sessions.
This commit is contained in:
@@ -33,10 +33,12 @@ struct buffer_free_block {
|
||||
physaddr_t end;
|
||||
} __attribute__ (( packed ));
|
||||
|
||||
/* This must be provided by the architecture-dependent load_buffer.c */
|
||||
extern struct buffer load_buffer;
|
||||
|
||||
/* Functions in buffer.c */
|
||||
|
||||
extern void init_buffer ( struct buffer *buffer, physaddr_t start,
|
||||
size_t len );
|
||||
extern void init_buffer ( struct buffer *buffer );
|
||||
extern int fill_buffer ( struct buffer *buffer, void *data,
|
||||
off_t offset, size_t len );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user