cdns_i2c_func(9)
π cdns_i2c_func β from the Kernel API Manual, bestie
okay so real talk, this is a page from the Kernel API Manual and it's about one lil function called cdns_i2c_func. it's not a whole essay, it's literally one job: you hand it an adapter, it tells you what the driver can do. that's it. that's the whole vibe. π¦
β¨ NAME β¨
cdns_i2c_func β returns the supported features of the I2C driver
like, it's giving "capability report." you ask, it answers in bits. no cap. π₯
πΈ SYNOPSIS πΈ
u32 cdns_i2c_func (struct i2c_adapter *adap );
bestie look at the return type: u32. that's a 32 bit value, which means up to 32 lil feature flags could theoretically live in there. iconic bit-packing behavior honestly. π
π ARGUMENTS π
adapβ pointer to thei2c_adapterstructure. that's the thing you're asking about. hand it over and it'll do its thing. π«Ά
β RETURN β
a 32 bit value, where each bit corresponds to a feature. so likeβ¦ bit 0 is one thing, bit 1 is another thing, and you check them individually. don't read it as a plain number, read it as a vibe check of features. iykyk. π«
ngl, the manpage doesn't spell out which bit is which β it just says each bit = a feature. so don't go inventing meanings, bestie. π
π SEE ALSO π
so many friends in the same neighborhood, all living in the kernel file ./drivers/i2c/busses/i2c-cadence.c π
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_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)
and that's the whole page, bestie!! go forth and read your feature bits π β¨
sign-off time π this one lives in ./drivers/i2c/busses, dated October 2026, and the page itself is cdns_i2c_func(9). mwah. π
π¦ 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