baswap(9)
π baswap β like, the manual page bestie
okay so this is baswap(9), straight out of the Kernel API Manual β¨ β yes it's a section 9 page, yes it's kernel API, no you don't need to be scared, i got you π«Ά
πΈ NAME πΈ
baswap β swaps the order of a bd address π«
literally that's it. it flips the bytes. iconic behaviour tbh.
β¨ SYNOPSIS β¨
void baswap (bdaddr_t *dst , const bdaddr_t *src );
copy it exactly like that bestie, weird spacing and all, no cap π
π ARGUMENTS π
dstβ pointer to abdaddr_tstruct that will store the swapped bd address. this is the glow-up destination, the after photo πΈsrcβ pointer to thebdaddr_tstruct to be swapped. the before photo. you're not touching this one, it stays exactly how it is, periodt.
π¦ DESCRIPTION π¦
so the way that this works: baswap reverses the byte order of a Bluetooth device address π₯ that's the whole vibe check. one address in, same address's bytes flipped around, no extra drama.
it's giving simple. it's giving useful. it's giving "why is this its own function" but also "thank god it is" ππ
ngl this one's short and sweet β no hidden options, no exit statuses, no environment variables, nothing to memorise. just byte-reversal realness β¨
π SEE ALSO π
kernel file ./net/bluetooth/lib.c, plus all the friends in the group chat:
bt_to_errno(9)bt_status(9)bt_info(9)bt_warn(9)bt_err(9)bt_dbg(9)bt_warn_ratelimited(9)bt_err_ratelimited(9)
go say hi to them, they're all lovely π«Άπ
and that's the whole page babes π this little gem lives under ./net/bluetooth, and the version/date stamp on it is October 2026 β so yeah, it's from the future, main character energy fr fr π§βπ
π¦ 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