pm_clk_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ pm_clk_destroy(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so this is a page from the Kernel API Manual (that's the manual name, iykyk) and it's all about pm_clk_destroy β€” one little function with main character energy. Let's get into it πŸ’…


✨ NAME ✨

pm_clk_destroy β€” literally destroys a device's list of power management clocks. no cap, that's the whole vibe check 🫢


🌸 SYNOPSIS 🌸

void pm_clk_destroy (struct device *dev );

that's it. that's the signature. it returns void, so it gives you nothing back emotionally except closure πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the Device whose list of PM clocks you're about to destroy. it's dev. it's the main character here. you hand it over and the list gets cleared out 🌈

πŸ’– DESCRIPTION πŸ’–

so here's the tea, bestie πŸ“ this function does three things and it does them in order:

  1. it clears the dev's power.subsys_data field β€” like, that field? empty now.
  2. it removes the list of clock entries from the struct pm_subsys_data object that field was pointing to. all the clock entries? gone. from that object? yes.
  3. it frees that object β€” struct pm_subsys_data? bye bestie, free'd.

the way that it just clears, removes, and frees 🧚 iconic behaviour, honestly.

⚠️ heads up: the original phrasing is "before and free that object" β€” so the removing of clock entries happens before the freeing. order matters, don't come for me πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

all the sibling functions in the same little friend group β€” go say hi πŸ’œ


and that's the whole page, bestie!! πŸ₯³ a cute lil sign-off for you: this one comes courtesy of ./drivers/base/power β€” the source/version corner of the page β€” and it's dated October 2026, so it's basically from the future πŸ’« periodt. πŸŽ€

πŸ“¦ where this page comes from