acpi_node_get_parent(9)
β¨ 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:
acpi_data_get_property(9)acpi_dev_get_property(9)acpi_node_prop_get(9)acpi_data_get_property_array(9)__acpi_node_get_property_reference(9)acpi_node_prop_read(9)acpi_graph_get_next_endpoint(9)acpi_graph_get_child_prop_value(9)acpi_graph_get_remote_endpoint(9)
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
- 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