STRUCT SPMI_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a u8. πŸ‘‘

πŸ’– SEE ALSO πŸ’–

go check out these other icons in the Kernel file ./include/linux/spmi.h, they're all in the same friend group:

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