dev_pm_opp_get_of_node(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dev_pm_opp_get_of_node(9) πŸ’…

Okay so bestie, welcome to the Kernel API Manual ✨ this is the page for dev_pm_opp_get_of_node, and it's a short one but it's important, so buckle up πŸŽ€


🌸 NAME 🌸

dev_pm_opp_get_of_node β€” gets the DT node corresponding to an opp πŸ¦‹


✨ SYNOPSIS ✨

struct device_node * dev_pm_opp_get_of_node (struct dev_pm_opp *opp );

🫢 ARGUMENTS 🫢

  • opp β€” the opp you want the DT node returned for, like literally the whole point of the call πŸ’–

πŸ‘‘ RETURN πŸ‘‘

The DT node corresponding to the opp, else 0 on success. That's what the page says, no cap, we're not editing it πŸ“


πŸ’… DESCRIPTION πŸ’…

So here's the vibe check: the caller needs to put the node with of_node_put after using it. That's the whole description. Short and iconic, we love a low-maintenance function 🌈

Do not forget the of_node_put, bestie β€” it's giving "one line of docs, one very real responsibility" 😭

⭐ SEE ALSO ⭐

Kernel file ./drivers/opp/of.c, plus the whole friend group:


That's the whole page, bestie β€” short, sweet, and it ate πŸ’œ This little gem lives under ./drivers/opp in the Kernel API Manual, dated October 2026, and yes, it's titled dev_pm_opp_get_of_node(9) because we keep it consistent around here ✨ mwah 🫢

πŸ“¦ where this page comes from