efivar_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ efivar_init(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual page for efivar_init(9) β€” it's giving β€œbuild the initial list of EFI variables” and we’re gonna get through it together πŸ’–


✨ NAME ✨

efivar_init β€” build the initial list of EFI variables πŸ¦‹

🌸 SYNOPSIS 🌸

int efivar_init (int (*func)(efi_char16_t *, efi_guid_t, unsigned long,
       void *) , void *data , bool duplicate_check );

πŸ’… ARGUMENTS πŸ’…

  • func β€” the callback function to invoke for every variable, no cap ✨
  • data β€” function-specific data that gets passed to func, iykyk 🫢
  • duplicate_check β€” fail if a duplicate variable is found πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

Get every EFI variable from the firmware and invoke func. func should populate the initial dentry and inode tree 🌈

Returns 0 on success, or a kernel error code on failure. periodt πŸ’œ

🌟 SEE ALSO 🌟

Kernel file ./fs/efivarfs/vars.c β€” go look, bestie πŸ‘‘


that’s the whole vibe! this page is from ./fs/efivarfs (source/version), dated October 2026, and yes it’s efivar_init(9) β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from