iPXE
initrd.h
Go to the documentation of this file.
00001 #ifndef _INITRD_H
00002 #define _INITRD_H
00003 
00004 /** @file
00005  *
00006  * Initial ramdisk (initrd) reshuffling
00007  *
00008  */
00009 
00010 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
00011 
00012 #include <ipxe/uaccess.h>
00013 
00014 /** Minimum alignment for initrds
00015  *
00016  * Some versions of Linux complain about initrds that are not
00017  * page-aligned.
00018  */
00019 #define INITRD_ALIGN 4096
00020 
00021 /** Minimum free space required to reshuffle initrds
00022  *
00023  * Chosen to avoid absurdly long reshuffling times
00024  */
00025 #define INITRD_MIN_FREE_LEN ( 512 * 1024 )
00026 
00027 extern void initrd_reshuffle ( userptr_t bottom );
00028 extern int initrd_reshuffle_check ( size_t len, userptr_t bottom );
00029 
00030 #endif /* _INITRD_H */