Skip to content

Commit

Permalink
Bluetooth: hci_driver: Require coop prio bt_recv
Browse files Browse the repository at this point in the history
Document the general consensus among maintainers that `bt_recv` may not
be called from preemptible priorites.

Signed-off-by: Aleksander Wasaznik <[email protected]>
  • Loading branch information
alwa-nordic authored and jhedberg committed Oct 9, 2023
1 parent 8203646 commit e524042
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/zephyr/drivers/bluetooth/hci_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ static inline uint8_t bt_hci_evt_get_flags(uint8_t evt)
* for so-called high priority HCI events, which should instead be delivered to
* the host stack through bt_recv_prio().
*
* @note This function must only be called from a cooperative thread.
*
* @param buf Network buffer containing data from the controller.
*
* @return 0 on success or negative error number on failure.
Expand Down

0 comments on commit e524042

Please sign in to comment.