__swab16s(9)
πΈ NAME πΈ
okay so this is __swab16s(9) from the Kernel API Manual, and she is literally here to byteswap a 16-bit value in-place. no cap, that's the whole vibe: 16-bit value, swapped right where it already lives π
β¨ SYNOPSIS β¨
the signature is giving:
void __swab16s (__u16 *p );
π ARGUMENTS π
pβ pointer to a naturally-aligned 16-bit value. that's the assignment, bestie:ppoints at the naturally-aligned 16-bit value getting the byteswap treatment π«Ά
π¦ SEE ALSO π¦
peep the kernel file ./include/uapi/linux/swab.h, plus the whole linked squad:
__swab16(9)__swab32(9)__swab64(9)__swahw32(9)__swahb32(9)__swab16p(9)__swab32p(9)__swab64p(9)__swahw32p(9)__swahb32p(9)__swab32s(9)__swab64s(9)__swahw32s(9)__swahb32s(9)
source/version and date, bb: ./include/uapi/linux, October 2026 β bye bestie, go byteswap responsibly πβ¨
π¦ 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