You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

initrd.h 611B

123456789101112131415161718192021222324252627282930
  1. #ifndef _INITRD_H
  2. #define _INITRD_H
  3. /** @file
  4. *
  5. * Initial ramdisk (initrd) reshuffling
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  9. #include <ipxe/uaccess.h>
  10. /** Minimum alignment for initrds
  11. *
  12. * Some versions of Linux complain about initrds that are not
  13. * page-aligned.
  14. */
  15. #define INITRD_ALIGN 4096
  16. /** Minimum free space required to reshuffle initrds
  17. *
  18. * Chosen to avoid absurdly long reshuffling times
  19. */
  20. #define INITRD_MIN_FREE_LEN ( 512 * 1024 )
  21. extern void initrd_reshuffle ( userptr_t bottom );
  22. extern int initrd_reshuffle_check ( size_t len, userptr_t bottom );
  23. #endif /* _INITRD_H */