efivar_entry_delete(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay so bestie, welcome to efivar_entry_delete(9) from the Kernel API Manual β€” yes, the manual name is right there, cute. This function is literally here to delete variable, periodt. πŸ’…

  • efivar_entry_delete β€” delete variable 🌸

✨ SYNOPSIS ✨

int efivar_entry_delete (struct efivar_entry *entry );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • entry β€” entry containing variable to delete 🫢

🌸 DESCRIPTION 🌸

Delete the variable from the firmware. That's the main character move. ✨

It is the caller's responsibility to free entry (by deleting the dentry/inode) once we return. No cap β€” that cleanup is on you, not this function. 😭

Return vibes: 0 on success, -EINTR if we can't grab the semaphore, and a converted EFI status code if set_variable fails. Lowkey important, highkey useful. πŸ’–

🫢 reminder: after this returns, freeing entry is your job β€” and the way you do it is by deleting the dentry/inode. Don't forget, bestie.

🌈 SEE ALSO 🌈

Go peek at the kernel file ./fs/efivarfs/vars.c and these iconic functions:


kisses from the ./fs/efivarfs source/version crew πŸ’… β€” this page is dated October 2026 πŸŽ€, and yes, it’s still efivar_entry_delete(9) πŸ‘‘.

πŸ“¦ where this page comes from