STRUCT I2CHID_OPS(9)
β¨ NAME β¨
okay so bestie, welcome to the Kernel API Manual π«Ά β today's main character is struct i2chid_ops, and its whole NAME moment is literally: Ops provided to the core. π
π SYNOPSIS π
here's the struct exactly as the page lays it out, no cap:
struct i2chid_ops {
int (*power_up)(struct i2chid_ops *ops);
void (*power_down)(struct i2chid_ops *ops);
void (*shutdown_tail)(struct i2chid_ops *ops);
void (*restore_sequence)(struct i2chid_ops *ops);
};
π Members π
bestie, here's the full member lineup β every single one is iconic in its own way β¨
int (*power_up)(struct i2chid_ops *ops)β power_up does the sequencing to power up the device. β‘void (*power_down)(struct i2chid_ops *ops)β power_down does the sequencing to power down the device. πvoid (*shutdown_tail)(struct i2chid_ops *ops)β shutdown_tail is called at the end of shutdown. π«Άvoid (*restore_sequence)(struct i2chid_ops *ops)β restore_sequence is the hibernation restore sequence. π»π€
π SEE ALSO π
- Kernel file
./drivers/hid/i2c-hid/i2c-hid.hβ that's the SEE ALSO ref, bestie, right there π¦
that's the whole page, bestie π«Άβ¨ β source/version ./drivers/hid/i2c-hid, dated October 2026, and it's the struct i2chid_ops(9) page. xoxo π
π¦ 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