i2c_smbus_pec(9)
π i2c_smbus_pec(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β this one's a tiny little function from the i2c crew and it is, no cap, doing exactly one job and doing it iconically π
β¨ NAME β¨
i2c_smbus_pec β Incremental CRC8 over the given input data array πΈ
like, that's the whole vibe. it crunches a CRC8, and it does it incrementally β as in, you can feed it in pieces. main character energy fr π
π¦ SYNOPSIS π¦
u8 i2c_smbus_pec (u8 crc , u8 *p , size_t count );
look at her go π returns a u8, takes three args, no drama π
π ARGUMENTS π
crcβ the previous return crc8 value. yes bestie, the previous one β you're picking up where you left off π«Άpβ pointer to data buffer. that's your data, right there πcountβ number of bytes in data buffer. how much ofpwe're actually looking at π
π DESCRIPTION π
Incremental CRC8 over count bytes in the array pointed to by p β¨
that's it. that's the whole thing. little function, big slay π₯
π SEE ALSO π
Kernel file ./drivers/i2c/i2c-core-smbus.c β that's where she lives, go say hi π
and her whole friend group, fr fr:
i2c_smbus_read_byte(9)i2c_smbus_write_byte(9)i2c_smbus_read_byte_data(9)i2c_smbus_write_byte_data(9)i2c_smbus_read_word_data(9)i2c_smbus_write_word_data(9)i2c_smbus_read_block_data(9)i2c_smbus_write_block_data(9)i2c_smbus_xfer(9)i2c_smbus_read_i2c_block_data_or_emulated(9)i2c_new_smbus_alert_device(9)
the whole squad, assembled π§π«
ngl there are no warnings, no bugs, no exit statuses here β she's a pure little checksum girlie and she said what she said π
okay that's the page!! mwah π this lil gem lives in ./drivers/i2c and the manual says October 2026 β so mark your calendar bestie, and remember: incremental CRC8 is a lifestyle πππ¦
π¦ 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