efi_get_type(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is efi_get_type, brought to you by the Kernel API Manual ✨ it’s giving β€œtiny EFI detective” energy and honestly? iconic πŸ’…


✨ NAME ✨

efi_get_type β€” give it a pointer to boot_params, and it figures out the type of EFI environment you’re in 🫢 no cap, that’s the whole mission.


πŸŽ€ SYNOPSIS πŸŽ€

enum efi_type efi_get_type (struct boot_params *bp );

πŸ’… ARGUMENTS πŸ’…

  • bp β€” pointer to boot_params. that’s the one and only argument, bestie 🌸

🌈 RETURN 🌈

you get EFI_TYPE_{32,64} for valid EFI environments, and EFI_TYPE_NONE otherwise. periodt πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ source/version vibes: ./arch/x86/boot/compressed; date: October 2026; and the page is efi_get_type(9) β€” slay πŸŽ€βœ¨

πŸ“¦ where this page comes from