Skip to content
Permalink
Browse files

Bluetooth: GATT: Document the context in which callbacks are run

This documents the context in which callbacks are run, that is now
the System Workqueue.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
  • Loading branch information...
Vudentz authored and jhedberg committed May 31, 2019
1 parent 3624972 commit dcf253a1d25eba48643f58d4ad7a843b9240debe
Showing with 5 additions and 1 deletion.
  1. +5 −1 include/bluetooth/gatt.h
@@ -790,7 +790,9 @@ struct bt_gatt_notify_params {
* With the addition that after sending the notification the
* callback function will be called and can dispatch multiple
* notifications at once.
*
* The callback is run from System Workqueue context.
*
* Alternatively it is possible to notify by UUID by setting it on the
* parameters, when using this method the attribute given when be used as the
* start range when looking up for possible matches.
@@ -1147,6 +1149,8 @@ int bt_gatt_write(struct bt_conn *conn, struct bt_gatt_write_params *params);
* With the addition that after sending the write the callback function will be
* called.
*
* The callback is run from System Workqueue context.
*
* Note: By using a callback it also disable the internal flow control
* which would prevent sending multiple commands without waiting for their
* transmissions to complete, so if that is required the caller shall not

0 comments on commit dcf253a

Please sign in to comment.
You can’t perform that action at this time.