linux/net/bluetooth
Gustavo Padovan f8e73017c1 Bluetooth: Add l2cap_state_change_and_error()
l2cap_state_change_and_error() introduces the ability to update a
l2cap_user with changes in channel's state and error code with just one
call. The main reason for this is to avoid race conditions between and
setting the state and then the error. Otherwise we would need to release
the lock between both operations.

This is another step of an ongoing work to make l2cap_core.c totally
independent from l2cap's struct sock.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2013-10-15 16:42:44 -07:00
..
bnep Bluetooth: Access BNEP session addresses through L2CAP channel 2013-10-13 20:00:35 +03:00
cmtp Bluetooth: Access CMTP session addresses through L2CAP channel 2013-10-13 20:00:30 +03:00
hidp Bluetooth: Access HIDP session addresses through L2CAP channel 2013-10-13 20:00:33 +03:00
rfcomm Bluetooth: Store RFCOMM address information in its own socket structure 2013-10-13 21:11:23 +03:00
a2mp.c Bluetooth: Extend state_change() call to report errors too 2013-10-15 16:42:44 -07:00
a2mp.h Bluetooth: Move a2mp.h header file into net/bluetooth/ 2013-10-11 00:10:05 +02:00
af_bluetooth.c Bluetooth: Adjust header for proc socket information 2013-10-14 14:20:50 +03:00
amp.c Bluetooth: Remove l2cap_conn->dst usage from AMP manager 2013-10-13 17:43:32 +03:00
amp.h Bluetooth: Move amp.h header file into net/bluetooth/ 2013-10-11 00:10:03 +02:00
hci_conn.c Bluetooth: Store source address of HCI connections 2013-10-13 17:47:37 +03:00
hci_core.c Bluetooth: Update class of device on discoverable timeout 2013-10-15 21:28:42 +03:00
hci_event.c Bluetooth: Move eir_get_length() function into hci_event.c 2013-10-15 21:28:38 +03:00
hci_sock.c Bluetooth: Move skb->dev assignment for hdev->send into central place 2013-10-11 00:10:09 +02:00
hci_sysfs.c PTR_RET is now PTR_ERR_OR_ZERO(): Replace most. 2013-07-15 11:25:01 +09:30
Kconfig Bluetooth: trivial: Remove newline before EOF 2012-10-24 00:42:47 -02:00
l2cap_core.c Bluetooth: Add l2cap_state_change_and_error() 2013-10-15 16:42:44 -07:00
l2cap_sock.c Bluetooth: Extend state_change() call to report errors too 2013-10-15 16:42:44 -07:00
lib.c bluetooth: Remove unneeded batostr function 2012-09-27 18:10:43 -03:00
Makefile Bluetooth: Enable -D__CHECK_ENDIAN__ for sparse by default 2013-10-02 09:10:05 +03:00
mgmt.c Bluetooth: Update class of device on discoverable timeout 2013-10-15 21:28:42 +03:00
sco.c Bluetooth: Store SCO address information in its own socket structure 2013-10-13 21:11:20 +03:00
smp.c Bluetooth: Fix coding style violations in SMP handling 2013-10-13 17:48:49 +03:00
smp.h Bluetooth: Move smp.h header file into net/bluetooth/ 2013-10-11 00:10:07 +02:00