crc32_le(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘) or 0 when 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 🌈


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