__clk_recalc_accuracies(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __clk_recalc_accuracies(9) ✨

okay bestie so you found yourself in the Kernel API Manual β€” welcome, pull up a chair, this one's a function not a whole program, and it's genuinely kind of elegant. let's get into it πŸŽ€


🌸 NAME 🌸

__clk_recalc_accuracies β€” recalculate all accuracies in the clk subtree, no cap, the whole tree, every single clock in it πŸ’–


✨ SYNOPSIS ✨

void __clk_recalc_accuracies (struct clk_core *core );

that's it. that's the whole call. one pointer, no return value, void like it has nothing to prove πŸ’…


🫢 ARGUMENTS 🫢

  • core β€” the first clk in the subtree. like, the top of the tree, the main character of this little clk family reunion πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it actually does: it walks the subtree of clks starting with core, and recalculates accuracies as it goes. like a little accuracy glow-up road trip through the whole family tree 🌈

and here's the part you gotta know, bestie, this is the important bit: if a clk does not implement the .recalc_accuracy callback, then it is assumed that the clock will take on the accuracy of its parent. so no callback, no problem β€” it just inherits the vibe from up the tree. it's giving nepo baby but in a clock framework way πŸ™ˆ

no extra behaviour, no guessing β€” that's literally exactly what it does fr fr. walk the subtree, recalc accuracies, and anyone without .recalc_accuracy copies their parent's accuracy. periodt.

πŸ‘‘ SEE ALSO πŸ‘‘

okay this list is long and I'm obsessed, everyone's here, it's the whole group chat πŸ’€


and that's the whole page, bestie, you ate it πŸ’– this one lives in ./drivers/clk and the manual's dated October 2026 β€” so yeah, future girlie behaviour, iconic, no notes πŸŒŸπŸ’…πŸ¦‹

πŸ“¦ where this page comes from