i2c_mark_adapter_suspended(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ i2c_mark_adapter_suspended(9) πŸ’€

okay bestie, welcome to the Kernel API Manual ✨ β€” today's main character is i2c_mark_adapter_suspended(9), and honestly? she's a tiny function with big "don't talk to me, I'm asleep" energy πŸ¦‹


🌸 NAME 🌸

i2c_mark_adapter_suspended β€” literally just reports the suspended state of the adapter up to the core, that's the whole vibe πŸŽ€


✨ SYNOPSIS ✨

void i2c_mark_adapter_suspended (struct i2c_adapter *adap );

no cap, that's the entire signature πŸ’…


🫢 ARGUMENTS 🫢

  • adap β€” the adapter you're marking as suspended. that's her. she's going to sleep 😴

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• β€” when you use this helper to mark an adapter as suspended, the core will reject further transfers to this adapter. like, door's closed, transfers, go home πŸ™ˆ

now, using this helper is optional but recommended for devices that have distinct handlers for system suspend and runtime suspend β€” if that's your device, this is giving exactly what you need πŸ‘‘

and for the more complex devices out there? they're totally free to implement custom solutions to reject transfers when suspended. main character energy, do it your way πŸ’œ


πŸ¦‹ SEE ALSO πŸ¦‹

kernel file ./include/linux/i2c.h, plus the whole friend group:


quick reminder bestie: this one's a void β€” she returns nothing, she just does the thing and dips πŸ’…

and that's the whole page!! 🌈 this lil gem lives in ./include/linux, dated October 2026, and it's filed under i2c_mark_adapter_suspended(9) in the Kernel API Manual β€” go forth and suspend responsibly, ily, bye πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from