acpi_node_get_parent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ acpi_node_get_parent(9) ✨

okay so bestie, buckle in, we're in the Kernel API Manual today and this little function is genuinely iconic. it's called acpi_node_get_parent and honestly? the name is a spoiler, because it does exactly what it says. no cap. πŸ’…


🌸 NAME 🌸

acpi_node_get_parent β€” returns the parent fwnode of this fwnode 🫢


πŸŽ€ SYNOPSIS πŸŽ€

struct fwnode_handle * acpi_node_get_parent (const struct fwnode_handle
*fwnode );

like, look at her. struct fwnode_handle * out front, taking one const struct fwnode_handle *fwnode as an argument. clean. no notes. πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • fwnode β€” the firmware node whose parent you're trying to get. that's it. that's the whole mood. it's giving "tell me who your mom is" energy 🧚

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does it actually do? it returns the parent node of an ACPI device or data firmware node. that's the whole thing. πŸ”₯

and if there's no parent available? it returns NULL. no parent, no problem, no drama, just NULL. πŸ™ˆ

like literally that's it β€” parent fwnode in, parent fwnode (or NULL) out. main character energy from a four-line function, we love to see it. πŸ’œ


🌈 SEE ALSO 🌈

the kernel file is ./drivers/acpi/property.c β€” that's where the magic lives, iykyk ✨ and here's the whole friend group, all of them showing up to the function:


fr fr if you were looking for a plot twist, there isn't one. it gets the parent. that's the post. 🫢

and that's the whole page, bestie!! πŸŽ€ this one came out of ./drivers/acpi, dated October 2026, and honestly? slayed. periodt. πŸ’–πŸŒΈβ­

πŸ“¦ where this page comes from