initrd.h 559B

1234567891011121314151617181920212223242526272829
  1. #ifndef _INITRD_H
  2. #define _INITRD_H
  3. /** @file
  4. *
  5. * Initial ramdisk (initrd) reshuffling
  6. *
  7. */
  8. FILE_LICENCE ( GPL2_OR_LATER );
  9. #include <ipxe/uaccess.h>
  10. /** Minimum alignment for initrds
  11. *
  12. * Chosen to maximise memcpy() speeds
  13. */
  14. #define INITRD_ALIGN 4
  15. /** Minimum free space required to reshuffle initrds
  16. *
  17. * Chosen to avoid absurdly long reshuffling times
  18. */
  19. #define INITRD_MIN_FREE_LEN ( 512 * 1024 )
  20. extern void initrd_reshuffle ( userptr_t bottom );
  21. extern int initrd_reshuffle_check ( size_t len, userptr_t bottom );
  22. #endif /* _INITRD_H */