STRUCT I2CHID_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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