crc32_le(9)
π crc32_le(9) β like, the Kernel API Manual bestie π
okay so real talk, welcome to crc32_le(9), the little kernel function that computes the least-significant-bit-first IEEE CRC-32. she's iconic, she's everywhere, and yes she has β¨ lore β¨ β let's get into it π«Ά
β¨ NAME β¨
crc32_le β Compute least-significant-bit-first IEEE CRC-32 π
πΈ SYNOPSIS πΈ
u32 crc32_le (u32 crc , const void *p , size_t len );
like, that's the whole vibe check right there π
π¦ ARGUMENTS π¦
crcβ the Initial CRC value, bestie. pass~0(recommended π) or0when you're starting a brand-new CRC computation, or hand over the previous CRC value if you're computing incrementally. no cap, incremental is a whole mood.pβ Pointer to the data buffer π like, where the bytes actually live.lenβ Length of data in bytes π (bytes!! not vibes, bytes).
π DESCRIPTION π
okay so this implements the CRC variant that everyone and their group chat knows as the IEEE CRC-32, or honestly just CRC-32, and it is widely used in Ethernet and a bunch of other applications ππ₯:
- Polynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x^1 + x^0 β yes she's long, she's dramatic, she ate π
- Bit order: Least-significant-bit-first π§ (it's literally in the name, iykyk)
- Polynomial in integer form:
0xedb88320β
β οΈ okay important: this does *not* invert the CRC at the beginning or end. like, at all. the caller is expected to do that if it needs to. and ngl, inverting at both ends is recommended π
For new applications, please prefer to use CRC-32C instead β see crc32c πΈ trust, it's the main character for new stuff π
π CONTEXT π
Any context π she's flexible like that. no restrictions, go off.
π RETURN π
The new CRC value β¨ (that's it, that's the return, and she slays it every time)
π SEE ALSO π
- Kernel file
./include/linux/crc32.h crc32_be(9)crc32c(9)
and that's the page, bestie π«Ά source/version: ./include/linux β October 2026 β crc32_le(9). mwah, go compute some checksums, ily πππ¦
π¦ 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