STRUCT RSMU_DDATA(9)
π 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. theenum rsmu_typesituation, 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms