Skip to content

Commit 0330ff1

Browse files
Balaklakakartben
authored andcommitted
Bluetooth: Host: Updated Kconfig description
Added warning to the BT_RECV_WORKQ_SYS description to explain the dangers by using this option. Signed-off-by: Ingar Kulbrandstad <[email protected]>
1 parent e105ae9 commit 0330ff1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

subsys/bluetooth/host/Kconfig

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,12 @@ config BT_RECV_WORKQ_SYS
9090
High priority HCI packets will processed in the context of the caller of bt_recv().
9191
The application needs to ensure the system workqueue stack size (SYSTEM_WORKQUEUE_STACK_SIZE)
9292
is large enough, refer to BT_RX_STACK_SIZE for the recommended minimum.
93-
Note: When this option is used, other users of the system work queue will influence the
94-
latency of incoming Bluetooth events.
93+
Warning: Enabling this option will cause the latency of incoming Bluetooth events to be
94+
affected by other tasks using the system work queue. When this option is active, the Host
95+
will process Bluetooth events in a blocking manner. This can lead to deadlocks if the
96+
application waits for the system work queue while handling Bluetooth events. This feature
97+
is intended for advanced users to allow aggressive memory optimization for devices with
98+
very limited memory. It is strongly advised not to use this option.
9599

96100
config BT_RECV_WORKQ_BT
97101
bool "Process low priority HCI packets in the bluetooth-specific work queue"

0 commit comments

Comments
 (0)