__swab16(9)
π
__swab16 (9)
okay so bestie, welcome to the Kernel API Manual β this little page is about __swab16, and honestly it's giving "small but mighty" main character energy. β¨
πΈ NAME πΈ
__swab16 β return a byteswapped 16-bit value π
like, it takes a 16-bit thing and flips the bytes around. that's the whole vibe. no cap.
π¦ SYNOPSIS π¦
__swab16 (x );
yes bestie, that trailing space before the ) is exactly how it's written in the original β we do not touch the code, ever. periodt. π
β¨ ARGUMENTS β¨
xβ the value to byteswap π«Ά literally just hand it the value and it'll do the byte-flipping for you.
π SEE ALSO π
Kernel file ./include/uapi/linux/swab.h π β that's where this whole situation lives, and it's got friends:
__swab32(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)
a whole swab family reunion, honestly iconic. π
π§ friendly reminder: every one of those references is exactly as written in the original page β no renaming, no merging, no invented options. we keep the facts flawless while the vibe stays immaculate. π
okay that's the page!! π this absolute gem comes from the source ./include/uapi/linux, dated October 2026 β and that's the cute little sign-off, bestie. go byteswap something and slay. π
π₯π
π¦ 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