__swab16s(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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: p points 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:


source/version and date, bb: ./include/uapi/linux, October 2026 β€” bye bestie, go byteswap responsibly πŸ’–βœ¨

πŸ“¦ where this page comes from