clk_hw_regi..._parent_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… clk_hw_regi..._parent_data(9) β€” from the Kernel API Manual, bestie ✨

okay so bestie. welcome to the group chat for kernel clock people πŸ•°οΈ. this one lives in the Kernel API Manual, and it's literally the page for clk_hw_register_divider_parent_data. it's giving "i make dividers and i know things" energy and i'm lowkey obsessed πŸ’–.


✨ NAME ✨

clk_hw_register_divider_parent_data β€” bestie, this is the one that registers a divider clock with the clock framework πŸŽ€. that's it. that's the whole job. iconic.


πŸ¦‹ SYNOPSIS πŸ¦‹

clk_hw_register_divider_parent_data (dev , name , parent_data , flags ,
reg , shift , width , clk_divider_flags , lock );

like, look at her. nine whole arguments. main character energy fr fr πŸ‘‘.


🌸 ARGUMENTS 🌸

every single one matters, no skipping, i don't make the rules (the kernel does):

  • dev β€” the device that's registering this clock 🫢. it's the one putting its name on the paperwork.
  • name β€” the name of this clock, bestie. what you gonna call her πŸ‘‘.
  • parent_data β€” the parent clk data ✨. the family tree situation.
  • flags β€” the framework-specific flags 🚩. framework says so, so you do it.
  • reg β€” the register address you're gonna adjust the divider at πŸ’…. go touch that register.
  • shift β€” how many bits you shift the bitfield by 🌈. math but make it fashion.
  • width β€” the width of the bitfield πŸŽ€. how thicc that field is.
  • clk_divider_flags β€” divider-specific flags for this clock πŸ¦‹. yes, there are two flag arguments. yes, you need both. ngl this is a whole vibe.
  • lock β€” the shared register lock for this clock πŸ”’. share it nice, please.

🧚 SEE ALSO 🧚

okay so this is the part where i list literally everyone in the extended universe. no cap, every single one. iykyk πŸ’œ

first off, this is all documented in the Kernel file ./include/linux/clk-provider.h, and then the clk framework flags page:

like i said. the whole extended universe. ate and left no crumbs πŸ“.


πŸ’– one last thing πŸ’–

this page shipped from ./include/linux, dated October 2026, part of the Kernel API Manual β€” and that's on clk_hw_regi..._parent_data(9). periodt πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from