pch_i2c_func(9)
π pch_i2c_func(9) β like, the Kernel API Manual page you didn't know you needed
okay so bestie, welcome to pch_i2c_func(9) from the Kernel API Manual β yes this is a real kernel function page and yes it's basically one line of code with a whole personality. let's get into it π
β¨ NAME β¨
pch_i2c_func β it returns the functionality of the I2C driver. that's it. that's the whole job. iconic honestly π
πΈ SYNOPSIS πΈ
u32 pch_i2c_func (struct i2c_adapter *adap );
like, you hand it an adapter and it hands you back a u32 full of functionality bits. transactional. slay π
π¦ ARGUMENTS π¦
adapβ pointer tostruct i2c_algo_pch_data. so not just any adapter bestie, it's specifically the PCH one. read the name, love the name π
π₯ SEE ALSO π₯
so there's a whole friend group here and you should lowkey meet all of them π«Ά
the kernel file is ./drivers/i2c/busses/i2c-eg20t.c, and it's giving main character energy for these structs and functions:
- 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_handler(9)pch_i2c_xfer(9)pch_i2c_disbl_int(9)
fr fr go read them, they're all in ./drivers/i2c/busses/ and they're all part of the same saga π
<div>ok that's the page!! this gem came out of ./drivers/i2c/busses, October 2026, and it lives as pch_i2c_func(9) forever. mwah πβ¨</div>
π¦ 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