__swab32(9)
π __swab32(9) β bestie's guide to the little byte-flipper
ok so you're in the Kernel API Manual and you clicked on __swab32(9) β welcome, you're in the right place, pull up a chair π
β¨ NAME β¨
__swab32 β it takes a 32-bit value and returns it byteswapped. that's it. that's the whole gig. no cap. π¦
πΈ SYNOPSIS πΈ
__swab32 (x );
π ARGUMENTS π
xβ the value you wanna byteswap. hand it over, she'll flip it π₯
π SEE ALSO π
okay so this whole thing lives in the kernel file ./include/uapi/linux/swab.h, and it's got a whole friend group β the swab girlies fr fr. go say hi to:
__swab16(9)__swab64(9)__swahw32(9)__swahb32(9)__swab16p(9)__swab32p(9)__swab64p(9)__swahw32p(9)__swahb32p(9)__swab16s(9)__swab32s(9)__swab64s(9)__swahw32s(9)__swahb32s(9)
like, the whole p squad and the whole s squad? iconic. main character energy across the board π
β¨
lowkey the most important thing: __swab32 returns the swapped 32-bit value β it doesn't do anything sneaky or in-place. love that for us π«Ά
kisses, and good luck out there in the kernel π this page came from ./include/uapi/linux and it's dated October 2026 β periodt. πβ
π¦ 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