pch_i2c_handler(9)
β¨ pch_i2c_handler β¨
okay so bestie, welcome to the kernel API manual for pch_i2c_handler(9) π this is a little corner of the kernel that lives in ./drivers/i2c/busses and honestly? it's giving interrupt-handler main character energy. sit down, grab a strawberry drink π, and let's get into it.
πΈ NAME πΈ
pch_i2c_handler β the interrupt handler for the PCH I2C controller π
like, that's its whole job. an interrupt shows up, this function answers the door. no cap.
π¦ SYNOPSIS π¦
irqreturn_t pch_i2c_handler (int irq , void *pData );
look at that signature. irqreturn_t in the front, two arguments in the back. iconic. β¨
π ARGUMENTS π
irqβ the irq number. literally just the number of the interrupt that fired, bestie, it's right there in the name πpDataβ the cookie πͺ passed back to the handler function. yes it's called a cookie. yes that's the actual technical term in this page. it's avoid *so it can be whatever your little heart needs it to be, and it gets handed right back to the handler. iykyk.
π SEE ALSO π
okay this is the part where i introduce you to the whole friend group π«Ά β all of these live in the kernel file ./drivers/i2c/busses/i2c-eg20t.c:
- struct
i2c_algo_pch_data(9) struct adapter_info(9)pch_i2c_init(9)pch_i2c_wait_for_bus_idle(9)pch_i2c_start(9)pch_i2c_stop(9)pch_i2c_repstart(9)pch_i2c_writebytes(9)pch_i2c_sendack(9)pch_i2c_sendnack(9)pch_i2c_restart(9)pch_i2c_readbytes(9)pch_i2c_cb(9)pch_i2c_xfer(9)pch_i2c_func(9)pch_i2c_disbl_int(9)
that's sixteen entries. i counted. we do not skip entries in this house π β¨ go read all of them, they're all slaying in their own way.
ngl bestie, if you're writing against the PCH I2C controller, this is your entry point. treat the cookie with respect and the irq number with respect and you'll be fine π
and that's the whole page!! mwah π this little moment was brought to you by the pch_i2c_handler(9) page from the ./drivers/i2c/busses section, dated October 2026 π β okay bye, go write some interrupt handlers, you're gonna eat π΄π
π¦ 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