i2c_mark_adapter_suspended(9)
π€ 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:
i2c_master_recv(9)i2c_master_recv_dmasafe(9)i2c_master_send(9)i2c_master_send_dmasafe(9)struct i2c_device_identity(9)enum i2c_driver_flags(9)struct i2c_driver(9)struct i2c_client(9)struct i2c_board_info(9)I2C_BOARD_INFO(9)struct i2c_algorithm(9)struct i2c_lock_operations(9)struct i2c_timings(9)struct i2c_bus_recovery_info(9)struct i2c_adapter_quirks(9)i2c_lock_bus(9)i2c_trylock_bus(9)i2c_unlock_bus(9)i2c_mark_adapter_resumed(9)i2c_check_quirks(9)module_i2c_driver(9)builtin_i2c_driver(9)
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
- 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