STRUCT REG_FIELD(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

Okay so welcome to the Kernel API Manual, bestie πŸ’– β€” this is the struct reg_field(9) page, and it's literally the description of an register field. Yes, β€œan register” β€” that's what it says, and we are not out here rewriting the facts, periodt πŸ’….


πŸ’… SYNOPSIS πŸ’…

Here's the struct in all its main-character glory ✨:

       struct reg_field {
           unsigned int reg;
           unsigned int lsb;
           unsigned int msb;
           unsigned int id_size;
           unsigned int id_offset;
        };

πŸŽ€ Members πŸŽ€

Vibe check on the members, one by one 🫢:

  • reg β€” Offset of the register within the regmap bank. Slay, that's the location bestie πŸ“.
  • lsb β€” lsb of the register field. Lowkey the lsb vibe ✨.
  • msb β€” msb of the register field. Highkey the msb vibe πŸ‘‘.
  • id_size β€” port size if it has some ports. If it's got ports, this is the size, no cap πŸšͺ.
  • id_offset β€” address offset for each ports. The address offset for each of those ports, periodt πŸ’….

🌈 SEE ALSO 🌈

Kernel file ./include/linux/regmap.h β€” and then the whole friend group of references, bestie, all of them, no skips πŸ’–:


Source/version and date check, bestie: this page comes from ./include/linux, dated October 2026, and it's the struct reg_field(9) manual page. Bye, love you! 🫢✨

πŸ“¦ where this page comes from