pch_i2c_restart(9)
π pch_i2c_restart β a Kernel API Manual moment π¦
okay so bestie, welcome to the glow-up of pch_i2c_restart(9), straight out of the Kernel API Manual β¨ this one's a little cutie β no cap, it's like three lines of lore but we're gonna make it iconic π
πΈ NAME πΈ
pch_i2c_restart β literally generates an I2C restart condition, in normal mode, periodt π
β¨ SYNOPSIS β¨
void pch_i2c_restart (struct i2c_algo_pch_data *adap );
like, that's the whole vibe check β returns nothing, takes one pointer π«Ά
π ARGUMENTS π
adapβ a pointer tostruct i2c_algo_pch_data, bestie. that's it. that's the argument. she's serving one (1) pointer and honestly? iconic π
π₯ DESCRIPTION π₯
so what does she do? she generates an I2C restart condition in normal mode by setting I2CCTL.I2CRSTA β that's the whole main character moment. no extra steps, no side quests, just set that bit and slay π
ngl it's giving "small function, big responsibility" β iykyk π
π¦ SEE ALSO π¦
the whole friend group, fr fr β go say hi to all of them π
- 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_readbytes(9)pch_i2c_cb(9)pch_i2c_handler(9)pch_i2c_xfer(9)pch_i2c_func(9)pch_i2c_disbl_int(9)
π okay that's the page!! this lil baddie lives in ./drivers/i2c/busses, dated October 2026, and yes she's still pch_i2c_restart(9) β ate and left no crumbs ππ
β¨
π¦ 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