summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2020-03-23 21:34:56 +0100
committerMarcel Holtmann <marcel@holtmann.org>2020-03-24 09:48:00 +0100
commitb48596d1dc257900b9639f61e1cfd95250e7381b (patch)
treeae19891e209d823a38feab1ba195002f1509fd65 /include
parentBluetooth: Fix incorrect branch in connection complete (diff)
downloadlinux-b48596d1dc257900b9639f61e1cfd95250e7381b.tar.xz
linux-b48596d1dc257900b9639f61e1cfd95250e7381b.zip
Bluetooth: L2CAP: Add get_peer_pid callback
This adds a callback to read the socket pid. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include')
-rw-r--r--include/net/bluetooth/l2cap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 537aaead259f..2d7d28474d34 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -660,6 +660,7 @@ struct l2cap_ops {
void (*suspend) (struct l2cap_chan *chan);
void (*set_shutdown) (struct l2cap_chan *chan);
long (*get_sndtimeo) (struct l2cap_chan *chan);
+ struct pid *(*get_peer_pid) (struct l2cap_chan *chan);
struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan,
unsigned long hdr_len,
unsigned long len, int nb);