clk_hw_regi...ivider_table(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… clk_hw_regi...ivider_table(9) β€” Kernel API Manual ✨

okay so bestie, buckle up, because we're diving into clk_hw_register_divider_table from the Kernel API Manual (yes, that manual, the one with the truncated name in the header, iykyk 😭). This is the one that registers a table based divider clock with the clock framework, and honestly? it's giving "niche but essential." πŸŽ€


🌸 NAME 🌸

clk_hw_register_divider_table β€” registers a table based divider clock with the clock framework. periodt. πŸ‘‘


⭐ SYNOPSIS ⭐

clk_hw_register_divider_table (dev , name , parent_name , flags , reg ,
shift , width , clk_divider_flags , table , lock );

like, that's the whole call. ten args. no cap. don't skip any of them or it's over for you πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device that's registering this clock. it's the main character of the registration, tbh 🫢
  • name β€” name of this clock. give her a good one ✨
  • parent_name β€” name of the clock's parent. yep, clocks have parents too, family tree real 🌈
  • flags β€” framework-specific flags. the generic ones, not the divider ones, keep scrolling for those πŸ‘€
  • reg β€” register address you're adjusting to set the divider πŸ“
  • shift β€” number of bits to shift the bitfield. bit math era πŸ’…
  • width β€” width of the bitfield. size matters (in bits) πŸŽ€
  • clk_divider_flags β€” divider-specific flags for this clock. yes it's a different flags argument than flags, don't come for me 😭
  • table β€” array of divider/value pairs, and it ends with a div set to 0. that zero is the little "we're done here" signal, do not forget it 🚩
  • lock β€” shared register lock for this clock. sharing is caring, but like, thread-safely πŸ”’
fr fr, that table needs its div set to 0 terminator or things get weird. the manpage said it, i'm just relaying it πŸ’–

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./include/linux/clk-provider.h β€” the source of truth, go say hi 🧚

like, that's a whole friend group. divs, gates, muxes, fixed factors, fractional dividers, multipliers β€” everybody's here and they all ate πŸ”₯


this has been your girl signing off from ./include/linux, the October 2026 edition of the Kernel API Manual, page clk_hw_regi...ivider_table(9) (name still truncated, still iconic, we stan a mysterious queen πŸ’œ). now go register that divider clock, bestie β€” you got this 🫢✨

πŸ“¦ where this page comes from