STRUCT PRE_DIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct pre_div(9) β€” Kernel API Manual, but make it cute

okay so bestie, welcome to struct pre_div(9) β€” this is the kernel API manual page for the qcom clock stuff, and honestly? she's small but she's mighty. πŸŽ€


✨ NAME ✨

struct pre_div β€” it's a pre-divider. that's the whole vibe. short, sweet, iconic. πŸ¦‹


✨ SYNOPSIS ✨

struct pre_div {
    u8 pre_div_shift;
    u8 pre_div_width;
 };

look at her. two fields. not one more, not one less. main character energy fr fr. πŸ’œ


✨ Members ✨

  • pre_div_shift β€” this is the lowest bit of the pre divider field. like, the starting point. the origin story. the bit where it all begins. ⭐
  • pre_div_width β€” this one's the number of bits in predivider. so basically how many bits wide the whole thing is. she's got range. πŸŽ€

ngl bestie, that's genuinely the entire struct. no hidden lore, no secret options. just two u8s living their best lives in ./drivers/clk/qcom/clk-rcg.h. 🫢

✨ SEE ALSO ✨

you know I'm not gonna leave you hanging β€” go check out the rest of the crew, they're all in the kernel file ./drivers/clk/qcom/clk-rcg.h:

  • struct mn(9)
  • struct src_sel(9)
  • struct clk_rcg(9)
  • struct clk_dyn_rcg(9)
  • struct clk_rcg2(9)

it's giving squad goals, honestly. πŸ’…


and that's the whole page, bestie β€” this little love letter to the qcom clock drivers lives in ./drivers/clk/qcom, stamped October 2026, and it's struct pre_div(9) all day long. go forth and configure your pre-dividers, you absolute icon. πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from