STRUCT SBS_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct sbs_platform_data(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ this one's a lil struct page and honestly it's short, sweet, and it ate. no cap. we're talking about struct sbs_platform_data β€” the platform data situation for sbs devices 🫢


🌸 NAME 🌸

struct sbs_platform_data β€” platform data for sbs devices πŸ’–

like, it's literally the lil config bundle that tells the sbs driver how to behave. iconic of it.


✨ SYNOPSIS ✨

struct sbs_platform_data {
    u32 i2c_retry_count;
    u32 poll_retry_count;
};

two u32 fields. that's the whole vibe. minimal, clean, main character energy πŸ‘‘


πŸŽ€ Members πŸŽ€

  • i2c_retry_count β€” the # of times to retry on i2c IO failure 😭 like when the i2c bus just ghosts you and the IO flops, this is how many times it's gonna try again before giving up. perseverance queen fr fr.
  • poll_retry_count β€” the # of times to retry looking for new status after external change notification πŸ‘€ so when something outside is like "hey, status changed!" this is how many times it re-checks for that new status. not me refreshing the timeline energy πŸ’€
ngl these are just counts, but they're doing a lot of heavy lifting behind the scenes. respect. 🫑

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/power/sbs-battery.h πŸ“ β€” go read the header, bestie, that's where the whole story lives πŸ’œ

and that's the whole page, you're welcome πŸ’…βœ¨

cute lil sign-off time πŸŽ€ this one's hanging out in ./include/linux/power, dated October 2026, and it's the struct sbs_platform_data(9) page in all its glory. mwah. πŸ’–πŸŒŸ

πŸ“¦ where this page comes from