efi_load_initrd_dev_path(9)
π 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 caseload_addrandload_sizeare 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 π
- Kernel file
./drivers/firmware/efi/libstub/efi-stub-helper.c efi_parse_options(9)efi_exit_boot_services(9)get_efi_config_table(9)efi_load_initrd(9)efi_wait_for_key(9)efi_remap_image(9)
mwah π this cutie comes from source ./drivers/firmware/efi/libstub and is dated October 2026. slay, periodt π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms