devm_clk_hw...or_parent_hw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« devm_clk_hw...or_parent_hw(9) πŸ’«

okay so bestie, welcome to the Kernel API Manual β€” yes, the actual one, the kernel docs, we're doing this 🫢 grab a strawberry drink and let's go, because this function is lowkey iconic and you're gonna understand it fr fr.


✨ NAME ✨

devm_clk_hw_register_fixed_factor_parent_hw β€” the function that registers a fixed factor clock, but with a pointer to the parent clock instead of... you know, not that. πŸ’…

It's giving "I do one thing and I do it well", and that thing is: register your clock. Slay.


πŸŽ€ SYNOPSIS πŸŽ€

okay here's the whole vibe in one line, copy it exactly, no cap:

devm_clk_hw_register_fixed_factor_parent_hw (dev , name , parent_hw ,
                                             flags , mult , div );

That's the whole call. Six things. That's it. Periodt. ✨


🌸 ARGUMENTS 🌸

okay so every single one of these matters, no skipping, I see you πŸ‘€

  • dev β€” the device that is registering this clock. like, who is doing this. the main character of this whole operation πŸ‘‘
  • name β€” the name of this clock. give it a cute name, it deserves one πŸŽ€
  • parent_hw β€” pointer to parent clk. yes, the parent. the clock that came before. the icon, the legend πŸ’œ
  • flags β€” the fixed factor flags. little toggles, big energy 🌈
  • mult β€” the multiplier. multiply, bestie πŸ“ˆ
  • div β€” the divider. divide, bestie πŸ“‰ (mult and div are literally a couple, iykyk)

πŸ”₯ RETURN πŸ”₯

so what do you get back? you get:

a pointer to the clk_hw structure of the fixed factor clock that was registered β€” like, that's your clock, that's your baby, hold it carefully πŸ₯Ή

or an error pointer. 😭 and if that happens, please check it. please. don't rawdog an error pointer, it will not end well. check with IS_ERR() or whatever, just don't ignore it πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

okay this list is long long, but it's all relevant, so here we go β€” literally every single one of these, no cutting corners, they're all (9) manpages:

like I said. long long. but every one of them ate, so. πŸ’…


vibe check 🫢 β€” this is a devm_ function, meaning it's the managed version. everything in this list is your support system, so if you're confused about any single argument, just hop to one of those (9) pages. we love a documented ecosystem ✨

okay that's the whole page bestie!! go register some clocks, treat your error pointers with respect, and remember: fixed factor clocks are literally the moment 🌟

sign-off time πŸŽ€ β€” this masterpiece lives in ./include/linux, it's dated October 2026, and it's your girl devm_clk_hw...or_parent_hw(9) signing off. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from