BTSOCKSTAT(1)
π BTSOCKSTAT(1) β bestie's guide to peeking at Bluetooth sockets β¨
okay so real talk, this is btsockstat(1) from the General Commands Manual and it's lowkey iconic for anyone who's ever wondered what's actually going on inside their Bluetooth stack π¦
πΈ NAME πΈ
btsockstat β show Bluetooth sockets information, and yes she will spill the tea about your active sockets π
β¨ SYNOPSIS β¨
btsockstat [-nrh] [-M core] [-p protocol]
π DESCRIPTION π
The btsockstat utility symbolically displays the contents of various Bluetooth sockets related data structures. Like, it literally reads the vibes of your data structures and translates them into something you can actually look at π«Ά
There are few output formats, depending on the options for the information presented β so the vibe check changes based on what flags you pass, no cap.
The btsockstat utility will print results to the standard output and error messages to the standard error. Clean split, standard behavior, we love to see it π
The options are as follows:
π OPTIONS π
-hβ Display usage message and exit. The "wait what were the flags again" button, iykyk π-Mcore β Extract values associated with the name list from the specified core instead of the default/dev/kmem. So if you wanna point her at a different core file instead of the default, this is the move β¨-nβ Show Bluetooth addresses as numbers. Normally,btsockstatattempts to resolve Bluetooth addresses, and display them symbolically β so this flag is you going "bestie, just gimme the raw numbers" π-pprotocol β Display a list of active sockets (protocol control blocks) for each specified protocol. Supported protocols are:hci_raw,l2cap_raw,l2cap,rfcommandrfcomm_s. Pick your fighter, or honestly pick them all, main character energy π₯-rβ Display a list of active routing entries (if any) for specified protocol. Note the "(if any)" β sometimes there's just nothing there and that's okay π
π EXIT STATUS π
The btsockstat utility exits 0 on success, and >0 if an error occurs. Zero means slay, anything above zero means something went off the rails π
π₯ SEE ALSO π₯
ng_btsocket(4) β go read that one next, fr fr β
π§ AUTHORS π§
Maksim Yevmenkin <m_evmenkin@yahoo.com> β the icon, the legend, the one who made this possible π
πΈ BUGS πΈ
Most likely. Please report if found. (Not me being this honest in a manpage π)
and that's the whole page bestie π«Άπ β brought to you by the Debian crew, dated October 12, 2003, because some icons are timeless πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms