git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bluetooth: Add extra device reference counting for connections
[pandora-kernel.git]
/
include
/
net
/
bluetooth
/
hci_core.h
diff --git
a/include/net/bluetooth/hci_core.h
b/include/net/bluetooth/hci_core.h
index
c4ca422
..
25b8a03
100644
(file)
--- a/
include/net/bluetooth/hci_core.h
+++ b/
include/net/bluetooth/hci_core.h
@@
-187,6
+187,7
@@
struct hci_conn {
struct work_struct work_del;
struct device dev;
struct work_struct work_del;
struct device dev;
+ atomic_t devref;
struct hci_dev *hdev;
void *l2cap_data;
struct hci_dev *hdev;
void *l2cap_data;
@@
-339,6
+340,9
@@
int hci_conn_switch_role(struct hci_conn *conn, __u8 role);
void hci_conn_enter_active_mode(struct hci_conn *conn);
void hci_conn_enter_sniff_mode(struct hci_conn *conn);
void hci_conn_enter_active_mode(struct hci_conn *conn);
void hci_conn_enter_sniff_mode(struct hci_conn *conn);
+void hci_conn_hold_device(struct hci_conn *conn);
+void hci_conn_put_device(struct hci_conn *conn);
+
static inline void hci_conn_hold(struct hci_conn *conn)
{
atomic_inc(&conn->refcnt);
static inline void hci_conn_hold(struct hci_conn *conn)
{
atomic_inc(&conn->refcnt);