cdns_i2c_slave_isr(9)
π cdns_i2c_slave_isr(9) β a Kernel API Manual moment β¨
okay so bestie, we're in the Kernel API Manual and today's main character is cdns_i2c_slave_isr β the interrupt handler for the I2C device when it's out here living its slave role life. it's giving background support icon, honestly π
πΈ NAME πΈ
cdns_i2c_slave_isr β the interrupt handler for the I2C device in slave role π¦
β¨ SYNOPSIS β¨
irqreturn_t cdns_i2c_slave_isr (void *ptr );
π«Ά ARGUMENTS π«Ά
ptrβ a pointer to the I2C device's private data. that's it, that's the whole vibe π
π DESCRIPTION π
so what this function actually does: it handles the data interrupt and the transfer complete interrupt of the I2C device in slave role. two interrupts, one handler, no cap π₯
like, both of those interrupt situations land here and this function is the one catching them. she's the designated responder, periodt π
β RETURN β
IRQ_HANDLED β always. every single time. no maybe, no sometimes, no "we'll see" π it's IRQ_HANDLED and that's that π―
π SEE ALSO π
bestie there is a whole friend group here, and they're all family. the kernel file lives at ./drivers/i2c/busses/i2c-cadence.c and honestly the whole cast shows up:
enum cdns_i2c_mode(9)enum cdns_i2c_slave_state(9)struct cdns_i2c(9)cdns_i2c_init(9)cdns_i2c_runtime_suspend(9)cdns_i2c_runtime_resume(9)cdns_i2c_clear_bus_hold(9)cdns_i2c_master_isr(9)cdns_i2c_isr(9)cdns_i2c_mrecv(9)cdns_i2c_msend(9)cdns_i2c_master_reset(9)cdns_i2c_master_xfer(9)cdns_i2c_master_xfer_atomic(9)cdns_i2c_func(9)cdns_i2c_calc_divs(9)cdns_i2c_setclk(9)cdns_i2c_clk_notifier_cb(9)cdns_i2c_detect_transfer_size(9)cdns_i2c_probe(9)cdns_i2c_remove(9)cdns_i2c_shutdown(9)
like, go read them, they're all iconic in their own way π§
ngl if you only read one thing here, just remember:ptrin,IRQ_HANDLEDout, no drama π
and that's the page bestie!! this one lives down in ./drivers/i2c/busses, it's dated October 2026, and it's filed under cdns_i2c_slave_isr(9) if you ever need to find it again. slay, go handle those interrupts ππ
π¦ 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