STRUCT RSMU_DDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct rsmu_ddata(9) β€” the kernel API manual, but make it make sense

okay so bestie, welcome to struct rsmu_ddata(9) πŸ¦‹ β€” yes that's the actual man page name, it lives in the Kernel API Manual section 9, and it's literally the device data structure for sub devices. that's the whole NAME. short, sweet, iconic. periodt πŸ’…


✨ NAME ✨

struct rsmu_ddata β€” device data structure for sub devices. that's it, that's the vibe πŸŽ€


🌸 SYNOPSIS 🌸

here's the whole struct, copied exactly, don't touch a single character bestie:

struct rsmu_ddata {
    struct device *dev;
    struct regmap *regmap;
    struct mutex lock;
    enum rsmu_type type;
    u32 page;
 };

πŸ‘‘ Members πŸ‘‘

  • dev β€” the i2c/spi device. like, the actual hardware friend we're talking to 🫢
  • regmap β€” the i2c/spi bus access. this is the little doorway the kernel uses to poke the registers πŸ’«
  • lock β€” a mutex that sub devices grab so that a whole series of bus access requests doesn't get interrupted mid-way. no cutting in line, no cap πŸ˜€πŸ”’
  • type β€” the RSMU device type. the enum rsmu_type situation, iykyk ✨
  • page β€” i2c/spi bus driver internal use only. bestie this one is not for you, hands off πŸ™ˆ (genuinely, it's internal use only, don't go poking it)
ngl that lock field is doing a lot of heavy lifting β€” it's the difference between a clean burst of bus accesses and absolute chaos πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/mfd/rsmu.h β€” go read it, it's right there πŸ‘€

and that's the whole page, bestie, you ate that πŸ“

sign-off time: this lil masterpiece comes from ./include/linux/mfd, dated October 2026, and it's filed under struct rsmu_ddata(9). slay πŸ’–βœ¨

πŸ“¦ where this page comes from