STRUCT DDIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, this is struct ddiv(9) from the Kernel API Manual, and it’s giving β€œdynamic switching divider but make it a struct” βœ¨πŸ’…

πŸ’– NAME πŸ’–

struct ddiv β€” Structure for dynamic switching divider. That’s the whole name, no cap. 🫢

✨ SYNOPSIS ✨

       struct ddiv {
           unsigned int offset:11;
           unsigned int shift:4;
           unsigned int width:4;
           unsigned int monbit:5;
           unsigned int no_rmw:1;
        };

πŸ¦‹ Members πŸ¦‹

  • offset β€” register offset. the where, basically πŸ“
  • shift β€” position of the divider bit. bit squad, line up ✨
  • width β€” width of the divider. how wide the divider situation is πŸŽ€
  • monbit β€” monitor bit in CPG_CLKSTATUS0 register. monitor bit in CPG_CLKSTATUS0 register, literally πŸ‘€
  • no_rmw β€” flag to indicate if the register is read-modify-write (1: no RMW, 0: RMW). read the flag, respect the flag πŸ’…

🌈 SEE ALSO 🌈

  • Kernel file: ./drivers/clk/renesas/rzv2h-cpg.h
  • struct pll(9)
  • struct smuxed(9)
  • struct fixed_mod_conf(9)
  • struct rzv2h_mod_clk(9)
  • struct rzv2h_reset(9)
  • struct rzv2h_cpg_info(9)

go read these next, bestie πŸ“šπŸ’–


and that’s the page, bestie 🫢 β€” source/version ./drivers/clk/renesas, dated October 2026, all for struct ddiv(9). bye πŸ’…

πŸ“¦ where this page comes from