pm_clk_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pm_clk_add(9) β€” the Kernel API Manual, but make it make sense

okay so bestie, we're in the Kernel API Manual today and this one is genuinely a little cutie. welcome to pm_clk_add(9) πŸŽ€


✨ NAME ✨

pm_clk_add β€” start using a device clock for power management. that's it, that's the whole vibe. πŸ’–


🌸 SYNOPSIS 🌸

int pm_clk_add (struct device *dev , const char *con_id );

like look at her. three tokens of pure main character energy. int coming back at you, dev and con_id going in. periodt. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device whose clock is going to be used for power management. literally the star of the show, the whole reason we're here πŸ‘‘
  • con_id β€” the connection ID of the clock. yes bestie, the ID, the name-tag, the little "hi my name is" sticker for the clock 🌈

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? she adds the clock represented by con_id to the list of clocks used for the power management of dev. that's the lore. not me being obsessed with a list append 🫢

like β€” that's the whole thing. clock goes in the list, list belongs to dev, power management now knows about it. iconic, lowkey, no notes. πŸ’…


πŸ”₯ SEE ALSO πŸ”₯

bestie the cross-references are long, so I'm giving them to you straight down the line, no skips, no cuts, fr fr:

Kernel file ./drivers/base/power/clock_ops.c

and yes, pm_clk_notify(9) is in there twice β€” that's not a typo on my end, that's the original being a little extra. she said "double it and give it to the next person" πŸ’€ but we keep her exactly as she is, no cap.


and that's the page, bestie!! 🧚 go forth, add your clocks, manage your power πŸ’–βœ¨

this little masterpiece lives at ./drivers/base/power, dated October 2026, and she goes by pm_clk_add(9) β€” mwah, stan her, goodnight πŸŒ™πŸŽ€

πŸ“¦ where this page comes from