of_clk_hw_register_kunit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… of_clk_hw_register_kunit(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil helper from ./drivers/clk and it's genuinely so useful, let me tell you everything 🫢


✨ NAME ✨

of_clk_hw_register_kunit β€” the test-managed glow-up of of_clk_hw_register(). literally the same thing but the test case holds the aux cord πŸŽ€


🌸 SYNOPSIS 🌸

int of_clk_hw_register_kunit (struct kunit *test , struct device_node
*node , struct clk_hw *hw );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the test context, aka where all the kunit magic lives ✨
  • node β€” the device_node of the device that's registering this clock, iykyk 🌈
  • hw β€” the link to the hardware-specific clock data, the main character of the operation πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So it's just like of_clk_hw_register, except β€” and this is the iconic part β€” the clk registration is managed by the test case and it gets automatically unregistered after the test case concludes. no cap, no manual cleanup, no tears 😭🫢

it's giving "register it and forget it" energy, and honestly? obsessed πŸ’…


⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • a negative errno value on failure πŸ’€

🧚 SEE ALSO 🧚


and that's the whole vibe, bestie πŸ“ this lil page lives in ./drivers/clk, dated October 2026, and it's brought to you by of_clk_hw_register_kunit(9) β€” go forth, register those clocks, and let the test framework clean up after you πŸ’œπŸ§šβ€β™€οΈπŸŽ€

πŸ“¦ where this page comes from