clk_hw_unreg...d_rate_kunit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… clk_hw_unreg...d_rate_kunit β€” a vibe check

okay so bestie, welcome to the Kernel API Manual ✨ this one's about clk_hw_unregister_fixed_rate_kunit(9), which honestly has a name that ate and left no crumbs. it's long, it's hyphenated, and it's here to do exactly one (1) thing for your kunit tests. let's get into it πŸŽ€


✨ NAME ✨

clk_hw_unregister_fixed_rate_kunit β€” the test-managed version of clk_hw_unregister_fixed_rate(), no cap 🫢


🌸 SYNOPSIS 🌸

int clk_hw_unregister_fixed_rate_kunit (struct kunit *test , struct clk_hw *hw );

that's the whole signature, bestie. three lines of vibes, zero surprises πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the test context πŸ§ͺ like, the group chat this whole operation lives in
  • hw β€” the fixed rate clk you wanna unregister when the test wraps up πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

so basically: it automatically unregisters hw when the test is complete, and it does that via clk_hw_unregister_fixed_rate. that's it. that's the function. it's giving "set it and forget it" and honestly? iconic. lowkey the most considerate little helper in ./drivers/clk. ⭐


🌈 RETURN 🌈

  • 0 on success πŸŽ‰ slay
  • a negative errno on failure 😭 yeah she can flop, that's normal, just check the return value fr fr

πŸŽ€ SEE ALSO πŸŽ€

  • Kernel file ./drivers/clk/clk-fixed-rate_test.c β€” the source of truth, go read it iykyk πŸ“–
  • struct clk_hw_fixed_rate_kunit_params(9)
  • clk_hw_register_fixed_rate_kunit(9) β€” the sibling, the counterpart, the other half of this duo πŸ’œ

πŸ’€ reminder bestie: this is the test-managed wrapper, so the unregistering happens on test completion β€” don't go thinking it's the same thing as clk_hw_unregister_fixed_rate itself, they're different girls πŸ™ˆ

and that's the whole page β€” go forth and let the test framework clean up after you, main character energy only πŸ‘‘


✿ sign-off time ✿ this little beauty lives in ./drivers/clk, it's dated October 2026, and the manual page answers to clk_hw_unreg...d_rate_kunit(9) (yes, with the ... in the middle, we don't ask questions, we just accept her πŸ’…). bye bestie, mwah πŸ“

πŸ“¦ where this page comes from