cdns_i2c_remove(9)
π cdns_i2c_remove(9) β the Kernel API Manual, bestie β¨
okay so this is the cdns_i2c_remove(9) page from the Kernel API Manual, and it's genuinely one of the shorter ones so we can absolutely get through it together. grab a strawberry π
πΈ NAME πΈ
cdns_i2c_remove β it unregisters the device after releasing the resources. that's the whole vibe. cleanup era. π§Ήβ¨
π¦ SYNOPSIS π¦
void cdns_i2c_remove (struct platform_device *pdev );
yes bestie, void β it returns nothing, it just does. main character energy fr fr π
(and keep the spacing exactly like that, iykyk)
π ARGUMENTS π
pdevβ the handle to thestruct platform_devicestructure. that's your little passport to the device you're about to tidy up π«Ά
β DESCRIPTION β
so what does it actually do? this function frees all the resources allocated to the device. all of them. no cap, no leftovers, no "oh i'll get that later" β it's the full clean-out. π§ββοΈβ¨
think of it as the goodbye-at-the-airport moment but for kernel resources. iconic, honestly. π
π RETURN π
0 always. π
like β always. that's what the page says, that's what i'm telling you. 0, every single time. (and yes, the synopsis up there says void, and the return section says 0 β i'm not the one who wrote it, i'm just the one delivering the message ππ keep both, that's the assignment.)
π₯ SEE ALSO π₯
the whole friend group π«Ά here's everyone:
- the kernel file
./drivers/i2c/busses/i2c-cadence.cβ the actual home base π 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_slave_isr(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_shutdown(9)
like, that's the entire gc. go read them, they're all slay in their own way π
heads up bestie: if you're skimming, don't skip the SEE ALSO list β every single one of those cross-references is load-bearing π«Ά
and that's the page!! mwah π this one lives in ./drivers/i2c/busses, and the version/date stamp on it is October 2026 β so go forth and unregister responsibly, you absolute icon ππ¦π
π¦ 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