mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 02:10:25 +03:00
Eliminate the requirement for free space when reshuffling initrds by swapping adjacent initrds using an in-place triple reversal. Signed-off-by: Michael Brown <mcb30@ipxe.org>
18 lines
320 B
C
18 lines
320 B
C
#ifndef _IPXE_INITRD_H
|
|
#define _IPXE_INITRD_H
|
|
|
|
/** @file
|
|
*
|
|
* Initial ramdisk (initrd) reshuffling
|
|
*
|
|
*/
|
|
|
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
|
|
|
#include <stdint.h>
|
|
|
|
extern void initrd_reshuffle ( physaddr_t bottom );
|
|
extern int initrd_reshuffle_check ( size_t len, physaddr_t bottom );
|
|
|
|
#endif /* _IPXE_INITRD_H */
|