STRUCT SPMI_DEVICE(9)
π struct spmi_device(9)
okay so real talk, welcome to the Kernel API Manual bestie β today's main character is struct spmi_device, and honestly? she's iconic. this is the basic representation of an SPMI device, and no cap, she's the blueprint. π
β¨ NAME β¨
struct spmi_device β the basic representation of an SPMI device. that's her. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
okay bestie, here's the actual glow-up, copy it exactly, don't touch a single character:
struct spmi_device {
struct device dev;
struct spmi_controller *ctrl;
u8 usid;
};
like, that's the whole struct. three members. minimal. clean. lowkey serving structure. π
π«Ά Members π«Ά
let me break down the cast of characters for you, one by one:
devβ the driver model representation of the device. so like, this is the device's whole persona in the driver model, her main character energy in the kernel's eyes. β¨ctrlβ a pointer to the SPMI controller that manages the bus hosting this device. yes, she has a controller. everyone needs someone managing the bus they live on, fr fr. πusidβ this device's Unique Slave IDentifier. that's Unique Slave IDentifier, capital U, capital S, capital I, capital D β it's giving acronym royalty. and yep, it's au8. π
π SEE ALSO π
go check out these other icons in the Kernel file ./include/linux/spmi.h, they're all in the same friend group:
struct spmi_controller(9)spmi_controller_put(9)struct spmi_driver(9)spmi_driver_unregister(9)
iykyk, it's a whole ecosystem. π
and that's the page!! no notes. π¦
cute little sign-off: this one lives in ./include/linux and it's dated October 2026 β and the page itself is brought to you by struct spmi_device(9), obviously. 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