clk_hw_regi...le_parent_hw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌟 NAME 🌟

clk_hw_register_divider_table_parent_hw β€” bestie, this is the one that registers a table based divider clock with the clock framework πŸ’…βœ¨

So like, the manual is the Kernel API Manual (yes, THE kernel, we're fancy now πŸŽ€) and this page is clk_hw_regi...le_parent_hw(9) β€” the name's long enough to get truncated, iconic honestly 😭


✨ SYNOPSIS ✨

clk_hw_register_divider_table_parent_hw (dev , name , parent_hw , flags
, reg , shift , width , clk_divider_flags , table , lock );

Ten arguments. Ten. She's high-maintenance but she delivers 🫢


πŸ’– ARGUMENTS πŸ’–

  • dev β€” the device that's registering this clock, aka who's signing the birth certificate πŸ‘‘
  • name β€” name of this clock. give her a good one, she'll be answering to it forever ⭐
  • parent_hw β€” pointer to the parent clk. every main character has an origin story 🌸
  • flags β€” framework-specific flags, the generic ones πŸ¦‹
  • reg β€” register address to adjust the divider 🎯
  • shift β€” number of bits to shift the bitfield. bit math, no cap πŸ’€
  • width β€” width of the bitfield πŸ“
  • clk_divider_flags β€” divider-specific flags for this clock, the specialized ones, not to be confused with flags above (yes there are two flag arguments, don't @ me) πŸ™ˆ
  • table β€” array of divider/value pairs ending with a div set to 0 πŸ“ (that trailing zero is the "we're done here" marker, fr fr)
  • lock β€” shared register lock for this clock. share it, be nice πŸ”’

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/clk-provider.h β€” that's where the whole clk framework fam lives, and honestly the list below is giving "tag yourself, I'm struct clk_divider(9)" 😌


πŸ’€ lowkey a whole family reunion in here β€” read a few of these before you start poking at dividers, it'll save you so much pain bestie

okay that's the whole page!! πŸŽ€ this one lives in ./include/linux and it's dated October 2026 β€” yes, the future, we're ahead of schedule ✨ slay πŸ’œ

πŸ“¦ where this page comes from