Bluetooth: L2CAP: Add note for bt_l2cap_chan_send
This adds a note about buffer ownership and error handling of bt_l2cap_chan_send so it is aligned with recent changes. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
33d95894e1
commit
e981e40ffa
1 changed files with 3 additions and 0 deletions
|
@ -402,6 +402,9 @@ int bt_l2cap_chan_disconnect(struct bt_l2cap_chan *chan);
|
|||
* Regarding to first input parameter, to get details see reference description
|
||||
* to bt_l2cap_chan_connect() API above.
|
||||
*
|
||||
* @note Buffer ownership is transferred to the stack in case of success, in
|
||||
* case of an error the caller retains the ownership of the buffer.
|
||||
*
|
||||
* @return Bytes sent in case of success or negative value in case of error.
|
||||
*/
|
||||
int bt_l2cap_chan_send(struct bt_l2cap_chan *chan, struct net_buf *buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue