NG_BLUETOOTH(4)
π NG_BLUETOOTH(4) π β a Kernel Interfaces Manual moment
okay so bestie, gather round, because this page is literally the placeholder page of the Bluetooth stack and it's more important than it sounds π (it's section 4, kernel interfaces, iykyk)
π¦ NAME π¦
ng_bluetooth β the placeholder for global Bluetooth variables. that's it. that's the job. and it does it flawlessly π
β¨ SYNOPSIS β¨
#include <sys/types.h>
#include <netgraph/bluetooth/include/ng_bluetooth.h>
like, include these and you're in β¨
πΈ DESCRIPTION πΈ
the ng_bluetooth module is a placeholder for global Bluetooth variables. so it's not out here doing main character work, it's the backdrop that makes everyone else's main character energy possible π«Ά
all Bluetooth variables can be examined and changed via sysctl(8) β yes, all of them, go look, it's giving open house π β¨
π Bluetooth Variables π
below is the description of default variables. but heads up: each Bluetooth module might add its own variables to the tree, so the vibe is ever-expanding π
net.bluetooth.versionβ a read-only integer variable that shows the current version of the Bluetooth stack. key word read-only, so no, you cannot change it, don't even try πnet.bluetooth.hci.command_timeoutβ a read-write integer variable that controls the Host Controller Interface (HCI) command timeout, in seconds β i.e. how long the HCI layer will wait for theCommand_CompleteorCommand_Statusevent from a Bluetooth device. it's giving "waiting for your text back" energy πnet.bluetooth.hci.connection_timeoutβ a read-write integer variable that controls the HCI connection timeout, i.e. how long the HCI layer will wait for theConnection_Completeevent. normally this should not be required, since Bluetooth devices have connection timeout of their own and will send the event back β¨. this timeout is required to ensure that no connection will stall in case the HCI transport layer is broken. be careful when changing this variable. make sure you understand what you are doing. π¨ no cap, that warning is real.net.bluetooth.hci.max_neighbor_ageβ a read-write integer variable that controls time-to-live (in seconds) for entries in the HCI neighbor cache. every time a Bluetooth device performs an Inquiry operation, the results will be put in cache ποΈ. later when a Bluetooth device establishes a baseband connection, it will try to find the matching entry in the cache and use it. this might speed up establishment of the baseband connection. it's giving "remembering their name from the group chat" lowkey genius π§ β¨net.bluetooth.l2cap.rtx_timeoutβ a read-write integer variable that controls the Link Layer Control and Adaptation Protocol (L2CAP) Retransmission Timeout (RTX), in seconds. every time the L2CAP layer submits a control command, the RTX timeout is set β°. the value of the RTX timeout should be greater or equal to the value of the HCI connection timeout. be careful when changing this variable. make sure you understand what you are doing. π (and like, actually understand it)net.bluetooth.l2cap.ertx_timeoutβ a read-write integer variable that controls the L2CAP Extended Retransmission Timeout (ERTX), in seconds. in some cases the remote peer may respond withPENDINGstatus to the L2CAP control command π. in this case the L2CAP command timeout is reset to the ERTX timeout value. the value of the ERTX timeout should be greater or equal to the value of the RTX timeout. be careful when changing this variable. make sure you understand what you are doing. π₯ (last warning, bestie, for real)
π SEE ALSO π
go read them, they're the friend group ππ
β HISTORY β
the ng_bluetooth module was implemented in FreeBSD 5.0. vintage but iconic, we stan an elder π
π AUTHORS π
Maksim Yevmenkin <m_evmenkin@yahoo.com> β absolute legend, thank you for your service π«Άπ
and that's the whole page, bestie, you ate that π
β¨ β this cutie came from the Debian build, dated November 9, 2002, so yeah, it's been serving NG_BLUETOOTH(4) realness since before most of us could read π¦π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- 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