efi_load_initrd_dev_path(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, this is the efi_load_initrd_dev_path(9) page from the Kernel API Manual ✨ The whole mood is literally: load the initrd from the Linux initrd device path. no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

The signature is exactly this, character-for-character:

efi_status_t efi_load_initrd_dev_path (struct linux_efi_initrd *initrd ,
unsigned long max );

πŸ’… ARGUMENTS πŸ’…

  • initrd β€” a pointer to the struct where we store the address the initrd was loaded at, plus the size of the loaded initrd πŸŽ€
  • max β€” the upper limit for the initrd memory allocation, aka the cap 🫢

✨ RETURN ✨

Here's the vibe check on the return values:

  • EFI_SUCCESS β€” the initrd loaded successfully, and in that case load_addr and load_size are assigned accordingly πŸ’–
  • EFI_NOT_FOUND β€” there is no LoadFile2 protocol on the initrd device path 😭
  • EFI_OUT_OF_RESOURCES β€” memory allocation failed πŸ’€
  • EFI_LOAD_ERROR β€” in all other cases πŸ™ˆ

πŸŽ€ SEE ALSO πŸŽ€

mwah πŸ’‹ this cutie comes from source ./drivers/firmware/efi/libstub and is dated October 2026. slay, periodt 🌈

πŸ“¦ where this page comes from