2012-05-23 05:00:20 +07:00
|
|
|
/*
|
2005-04-17 05:20:36 +07:00
|
|
|
BlueZ - Bluetooth protocol stack for Linux
|
|
|
|
Copyright (C) 2000-2001 Qualcomm Incorporated
|
|
|
|
|
|
|
|
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License version 2 as
|
|
|
|
published by the Free Software Foundation;
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
|
|
|
|
IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY
|
2012-05-23 05:00:20 +07:00
|
|
|
CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
|
|
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
2005-04-17 05:20:36 +07:00
|
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
2012-05-23 05:00:20 +07:00
|
|
|
ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
|
|
|
|
COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
|
2005-04-17 05:20:36 +07:00
|
|
|
SOFTWARE IS DISCLAIMED.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BLUETOOTH_H
|
|
|
|
#define __BLUETOOTH_H
|
|
|
|
|
|
|
|
#include <linux/poll.h>
|
|
|
|
#include <net/sock.h>
|
Bluetooth: /proc/net/ entries for bluetooth protocols
lsof command can tell the type of socket processes are using.
Internal lsof uses inode numbers on socket fs to resolve the type of
sockets. Files under /proc/net/, such as tcp, udp, unix, etc provides
such inode information.
Unfortunately bluetooth related protocols don't provide such inode
information. This patch series introduces /proc/net files for the protocols.
This patch against af_bluetooth.c provides facility to the implementation
of protocols. This patch extends bt_sock_list and introduces two exported
function bt_procfs_init, bt_procfs_cleanup.
The type bt_sock_list is already used in some of implementation of
protocols. bt_procfs_init prepare seq_operations which converts
protocol own bt_sock_list data to protocol own proc entry when the
entry is accessed.
What I, lsof user, need is just inode number of bluetooth
socket. However, people may want more information. The bt_procfs_init
takes a function pointer for customizing the show handler of
seq_operations.
In v4 patch, __acquires and __releases attributes are added to suppress
sparse warning. Suggested by Andrei Emeltchenko.
In v5 patch, linux/proc_fs.h is included to use PDE. Build error is
reported by Fengguang Wu.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
2012-07-25 23:26:32 +07:00
|
|
|
#include <linux/seq_file.h>
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
#ifndef AF_BLUETOOTH
|
|
|
|
#define AF_BLUETOOTH 31
|
|
|
|
#define PF_BLUETOOTH AF_BLUETOOTH
|
|
|
|
#endif
|
|
|
|
|
2011-12-01 19:33:27 +07:00
|
|
|
/* Bluetooth versions */
|
|
|
|
#define BLUETOOTH_VER_1_1 1
|
|
|
|
#define BLUETOOTH_VER_1_2 2
|
|
|
|
#define BLUETOOTH_VER_2_0 3
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/* Reserv for core and drivers use */
|
|
|
|
#define BT_SKB_RESERVE 8
|
|
|
|
|
|
|
|
#define BTPROTO_L2CAP 0
|
|
|
|
#define BTPROTO_HCI 1
|
|
|
|
#define BTPROTO_SCO 2
|
|
|
|
#define BTPROTO_RFCOMM 3
|
|
|
|
#define BTPROTO_BNEP 4
|
|
|
|
#define BTPROTO_CMTP 5
|
|
|
|
#define BTPROTO_HIDP 6
|
|
|
|
#define BTPROTO_AVDTP 7
|
|
|
|
|
|
|
|
#define SOL_HCI 0
|
|
|
|
#define SOL_L2CAP 6
|
|
|
|
#define SOL_SCO 17
|
|
|
|
#define SOL_RFCOMM 18
|
|
|
|
|
2009-01-16 03:58:04 +07:00
|
|
|
#define BT_SECURITY 4
|
|
|
|
struct bt_security {
|
|
|
|
__u8 level;
|
2011-07-09 04:31:46 +07:00
|
|
|
__u8 key_size;
|
2009-01-16 03:58:04 +07:00
|
|
|
};
|
|
|
|
#define BT_SECURITY_SDP 0
|
|
|
|
#define BT_SECURITY_LOW 1
|
|
|
|
#define BT_SECURITY_MEDIUM 2
|
|
|
|
#define BT_SECURITY_HIGH 3
|
|
|
|
|
2009-01-16 03:52:16 +07:00
|
|
|
#define BT_DEFER_SETUP 7
|
|
|
|
|
2011-01-03 16:14:36 +07:00
|
|
|
#define BT_FLUSHABLE 8
|
|
|
|
|
|
|
|
#define BT_FLUSHABLE_OFF 0
|
|
|
|
#define BT_FLUSHABLE_ON 1
|
|
|
|
|
2011-05-24 08:06:04 +07:00
|
|
|
#define BT_POWER 9
|
|
|
|
struct bt_power {
|
|
|
|
__u8 force_active;
|
|
|
|
};
|
|
|
|
#define BT_POWER_FORCE_ACTIVE_OFF 0
|
|
|
|
#define BT_POWER_FORCE_ACTIVE_ON 1
|
|
|
|
|
2011-11-03 06:18:28 +07:00
|
|
|
#define BT_CHANNEL_POLICY 10
|
|
|
|
|
|
|
|
/* BR/EDR only (default policy)
|
|
|
|
* AMP controllers cannot be used.
|
|
|
|
* Channel move requests from the remote device are denied.
|
|
|
|
* If the L2CAP channel is currently using AMP, move the channel to BR/EDR.
|
|
|
|
*/
|
|
|
|
#define BT_CHANNEL_POLICY_BREDR_ONLY 0
|
|
|
|
|
|
|
|
/* BR/EDR Preferred
|
|
|
|
* Allow use of AMP controllers.
|
|
|
|
* If the L2CAP channel is currently on AMP, move it to BR/EDR.
|
|
|
|
* Channel move requests from the remote device are allowed.
|
|
|
|
*/
|
|
|
|
#define BT_CHANNEL_POLICY_BREDR_PREFERRED 1
|
|
|
|
|
|
|
|
/* AMP Preferred
|
|
|
|
* Allow use of AMP controllers
|
|
|
|
* If the L2CAP channel is currently on BR/EDR and AMP controller
|
|
|
|
* resources are available, initiate a channel move to AMP.
|
|
|
|
* Channel move requests from the remote device are allowed.
|
|
|
|
* If the L2CAP socket has not been connected yet, try to create
|
|
|
|
* and configure the channel directly on an AMP controller rather
|
|
|
|
* than BR/EDR.
|
|
|
|
*/
|
|
|
|
#define BT_CHANNEL_POLICY_AMP_PREFERRED 2
|
|
|
|
|
2013-08-19 19:23:56 +07:00
|
|
|
#define BT_VOICE 11
|
|
|
|
struct bt_voice {
|
|
|
|
__u16 setting;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define BT_VOICE_TRANSPARENT 0x0003
|
|
|
|
#define BT_VOICE_CVSD_16BIT 0x0060
|
|
|
|
|
2012-02-17 14:32:42 +07:00
|
|
|
__printf(1, 2)
|
|
|
|
int bt_info(const char *fmt, ...);
|
|
|
|
__printf(1, 2)
|
|
|
|
int bt_err(const char *fmt, ...);
|
|
|
|
|
|
|
|
#define BT_INFO(fmt, ...) bt_info(fmt "\n", ##__VA_ARGS__)
|
|
|
|
#define BT_ERR(fmt, ...) bt_err(fmt "\n", ##__VA_ARGS__)
|
|
|
|
#define BT_DBG(fmt, ...) pr_debug(fmt "\n", ##__VA_ARGS__)
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/* Connection and socket states */
|
|
|
|
enum {
|
|
|
|
BT_CONNECTED = 1, /* Equal to TCP_ESTABLISHED to make net code happy */
|
|
|
|
BT_OPEN,
|
|
|
|
BT_BOUND,
|
|
|
|
BT_LISTEN,
|
|
|
|
BT_CONNECT,
|
|
|
|
BT_CONNECT2,
|
|
|
|
BT_CONFIG,
|
|
|
|
BT_DISCONN,
|
|
|
|
BT_CLOSED
|
|
|
|
};
|
|
|
|
|
2012-02-17 16:40:55 +07:00
|
|
|
/* If unused will be removed by compiler */
|
|
|
|
static inline const char *state_to_string(int state)
|
|
|
|
{
|
|
|
|
switch (state) {
|
|
|
|
case BT_CONNECTED:
|
|
|
|
return "BT_CONNECTED";
|
|
|
|
case BT_OPEN:
|
|
|
|
return "BT_OPEN";
|
|
|
|
case BT_BOUND:
|
|
|
|
return "BT_BOUND";
|
|
|
|
case BT_LISTEN:
|
|
|
|
return "BT_LISTEN";
|
|
|
|
case BT_CONNECT:
|
|
|
|
return "BT_CONNECT";
|
|
|
|
case BT_CONNECT2:
|
|
|
|
return "BT_CONNECT2";
|
|
|
|
case BT_CONFIG:
|
|
|
|
return "BT_CONFIG";
|
|
|
|
case BT_DISCONN:
|
|
|
|
return "BT_DISCONN";
|
|
|
|
case BT_CLOSED:
|
|
|
|
return "BT_CLOSED";
|
|
|
|
}
|
|
|
|
|
|
|
|
return "invalid state";
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/* BD Address */
|
|
|
|
typedef struct {
|
|
|
|
__u8 b[6];
|
2010-07-19 12:00:13 +07:00
|
|
|
} __packed bdaddr_t;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2012-04-25 07:02:49 +07:00
|
|
|
/* BD Address type */
|
|
|
|
#define BDADDR_BREDR 0x00
|
|
|
|
#define BDADDR_LE_PUBLIC 0x01
|
|
|
|
#define BDADDR_LE_RANDOM 0x02
|
|
|
|
|
2013-01-20 19:27:18 +07:00
|
|
|
static inline bool bdaddr_type_is_valid(__u8 type)
|
|
|
|
{
|
|
|
|
switch (type) {
|
|
|
|
case BDADDR_BREDR:
|
|
|
|
case BDADDR_LE_PUBLIC:
|
|
|
|
case BDADDR_LE_RANDOM:
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline bool bdaddr_type_is_le(__u8 type)
|
|
|
|
{
|
|
|
|
switch (type) {
|
|
|
|
case BDADDR_LE_PUBLIC:
|
|
|
|
case BDADDR_LE_RANDOM:
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2013-10-02 12:59:21 +07:00
|
|
|
#define BDADDR_ANY (&(bdaddr_t) {{0, 0, 0, 0, 0, 0}})
|
|
|
|
#define BDADDR_NONE (&(bdaddr_t) {{0xff, 0xff, 0xff, 0xff, 0xff, 0xff}})
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/* Copy, swap, convert BD Address */
|
2013-04-07 01:28:42 +07:00
|
|
|
static inline int bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
return memcmp(ba1, ba2, sizeof(bdaddr_t));
|
|
|
|
}
|
2013-04-07 01:28:42 +07:00
|
|
|
static inline void bacpy(bdaddr_t *dst, const bdaddr_t *src)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
memcpy(dst, src, sizeof(bdaddr_t));
|
|
|
|
}
|
|
|
|
|
|
|
|
void baswap(bdaddr_t *dst, bdaddr_t *src);
|
|
|
|
|
|
|
|
/* Common socket structures and functions */
|
|
|
|
|
|
|
|
#define bt_sk(__sk) ((struct bt_sock *) __sk)
|
|
|
|
|
|
|
|
struct bt_sock {
|
|
|
|
struct sock sk;
|
|
|
|
struct list_head accept_q;
|
|
|
|
struct sock *parent;
|
2012-05-16 22:17:10 +07:00
|
|
|
unsigned long flags;
|
2013-10-14 02:55:28 +07:00
|
|
|
void (*skb_msg_name)(struct sk_buff *, void *, int *);
|
2012-05-16 22:17:10 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
BT_SK_DEFER_SETUP,
|
|
|
|
BT_SK_SUSPEND,
|
2005-04-17 05:20:36 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct bt_sock_list {
|
|
|
|
struct hlist_head head;
|
|
|
|
rwlock_t lock;
|
Bluetooth: /proc/net/ entries for bluetooth protocols
lsof command can tell the type of socket processes are using.
Internal lsof uses inode numbers on socket fs to resolve the type of
sockets. Files under /proc/net/, such as tcp, udp, unix, etc provides
such inode information.
Unfortunately bluetooth related protocols don't provide such inode
information. This patch series introduces /proc/net files for the protocols.
This patch against af_bluetooth.c provides facility to the implementation
of protocols. This patch extends bt_sock_list and introduces two exported
function bt_procfs_init, bt_procfs_cleanup.
The type bt_sock_list is already used in some of implementation of
protocols. bt_procfs_init prepare seq_operations which converts
protocol own bt_sock_list data to protocol own proc entry when the
entry is accessed.
What I, lsof user, need is just inode number of bluetooth
socket. However, people may want more information. The bt_procfs_init
takes a function pointer for customizing the show handler of
seq_operations.
In v4 patch, __acquires and __releases attributes are added to suppress
sparse warning. Suggested by Andrei Emeltchenko.
In v5 patch, linux/proc_fs.h is included to use PDE. Build error is
reported by Fengguang Wu.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
2012-07-25 23:26:32 +07:00
|
|
|
#ifdef CONFIG_PROC_FS
|
|
|
|
int (* custom_seq_show)(struct seq_file *, void *);
|
|
|
|
#endif
|
2005-04-17 05:20:36 +07:00
|
|
|
};
|
|
|
|
|
2009-10-05 12:58:39 +07:00
|
|
|
int bt_sock_register(int proto, const struct net_proto_family *ops);
|
2013-02-25 01:36:52 +07:00
|
|
|
void bt_sock_unregister(int proto);
|
2005-04-17 05:20:36 +07:00
|
|
|
void bt_sock_link(struct bt_sock_list *l, struct sock *s);
|
|
|
|
void bt_sock_unlink(struct bt_sock_list *l, struct sock *s);
|
2011-06-07 16:18:06 +07:00
|
|
|
int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
|
|
|
|
struct msghdr *msg, size_t len, int flags);
|
2010-09-09 00:05:27 +07:00
|
|
|
int bt_sock_stream_recvmsg(struct kiocb *iocb, struct socket *sock,
|
|
|
|
struct msghdr *msg, size_t len, int flags);
|
2012-05-23 14:04:20 +07:00
|
|
|
uint bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
|
2008-07-15 01:13:50 +07:00
|
|
|
int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
|
2005-04-17 05:20:36 +07:00
|
|
|
int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo);
|
2013-09-16 17:05:19 +07:00
|
|
|
int bt_sock_wait_ready(struct sock *sk, unsigned long flags);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
void bt_accept_enqueue(struct sock *parent, struct sock *sk);
|
|
|
|
void bt_accept_unlink(struct sock *sk);
|
|
|
|
struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock);
|
|
|
|
|
|
|
|
/* Skb helpers */
|
2012-03-24 06:56:56 +07:00
|
|
|
struct l2cap_ctrl {
|
2012-05-23 14:04:20 +07:00
|
|
|
unsigned int sframe:1,
|
|
|
|
poll:1,
|
|
|
|
final:1,
|
|
|
|
fcs:1,
|
|
|
|
sar:2,
|
|
|
|
super:2;
|
2012-03-24 06:56:56 +07:00
|
|
|
__u16 reqseq;
|
|
|
|
__u16 txseq;
|
|
|
|
__u8 retries;
|
|
|
|
};
|
|
|
|
|
2013-03-06 01:37:44 +07:00
|
|
|
struct hci_dev;
|
|
|
|
|
|
|
|
typedef void (*hci_req_complete_t)(struct hci_dev *hdev, u8 status);
|
|
|
|
|
|
|
|
struct hci_req_ctrl {
|
|
|
|
bool start;
|
2013-04-04 01:50:29 +07:00
|
|
|
u8 event;
|
2013-03-06 01:37:44 +07:00
|
|
|
hci_req_complete_t complete;
|
|
|
|
};
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
struct bt_skb_cb {
|
2005-08-10 10:30:28 +07:00
|
|
|
__u8 pkt_type;
|
|
|
|
__u8 incoming;
|
2010-07-14 14:32:17 +07:00
|
|
|
__u16 expect;
|
2011-05-24 08:06:04 +07:00
|
|
|
__u8 force_active;
|
2013-10-22 03:22:24 +07:00
|
|
|
struct l2cap_chan *chan;
|
2012-03-24 06:56:56 +07:00
|
|
|
struct l2cap_ctrl control;
|
2013-03-06 01:37:44 +07:00
|
|
|
struct hci_req_ctrl req;
|
2013-10-14 02:55:29 +07:00
|
|
|
bdaddr_t bdaddr;
|
|
|
|
__le16 psm;
|
2005-04-17 05:20:36 +07:00
|
|
|
};
|
2009-08-21 08:25:57 +07:00
|
|
|
#define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb))
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2005-10-07 13:46:04 +07:00
|
|
|
static inline struct sk_buff *bt_skb_alloc(unsigned int len, gfp_t how)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
struct sk_buff *skb;
|
|
|
|
|
2012-05-23 14:04:20 +07:00
|
|
|
skb = alloc_skb(len + BT_SKB_RESERVE, how);
|
|
|
|
if (skb) {
|
2005-04-17 05:20:36 +07:00
|
|
|
skb_reserve(skb, BT_SKB_RESERVE);
|
|
|
|
bt_cb(skb)->incoming = 0;
|
|
|
|
}
|
|
|
|
return skb;
|
|
|
|
}
|
|
|
|
|
2011-06-07 16:18:06 +07:00
|
|
|
static inline struct sk_buff *bt_skb_send_alloc(struct sock *sk,
|
|
|
|
unsigned long len, int nb, int *err)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
struct sk_buff *skb;
|
|
|
|
|
2012-05-23 14:04:20 +07:00
|
|
|
skb = sock_alloc_send_skb(sk, len + BT_SKB_RESERVE, nb, err);
|
|
|
|
if (skb) {
|
2005-04-17 05:20:36 +07:00
|
|
|
skb_reserve(skb, BT_SKB_RESERVE);
|
|
|
|
bt_cb(skb)->incoming = 0;
|
|
|
|
}
|
2010-09-22 02:31:11 +07:00
|
|
|
|
|
|
|
if (!skb && *err)
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
*err = sock_error(sk);
|
|
|
|
if (*err)
|
|
|
|
goto out;
|
|
|
|
|
|
|
|
if (sk->sk_shutdown) {
|
|
|
|
*err = -ECONNRESET;
|
|
|
|
goto out;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
return skb;
|
2010-09-22 02:31:11 +07:00
|
|
|
|
|
|
|
out:
|
|
|
|
kfree_skb(skb);
|
|
|
|
return NULL;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
2011-06-30 08:18:29 +07:00
|
|
|
int bt_to_errno(__u16 code);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2005-10-29 00:20:48 +07:00
|
|
|
extern int hci_sock_init(void);
|
2008-03-06 09:47:03 +07:00
|
|
|
extern void hci_sock_cleanup(void);
|
2005-10-29 00:20:48 +07:00
|
|
|
|
|
|
|
extern int bt_sysfs_init(void);
|
|
|
|
extern void bt_sysfs_cleanup(void);
|
|
|
|
|
2013-04-05 06:14:33 +07:00
|
|
|
extern int bt_procfs_init(struct net *net, const char *name,
|
Bluetooth: /proc/net/ entries for bluetooth protocols
lsof command can tell the type of socket processes are using.
Internal lsof uses inode numbers on socket fs to resolve the type of
sockets. Files under /proc/net/, such as tcp, udp, unix, etc provides
such inode information.
Unfortunately bluetooth related protocols don't provide such inode
information. This patch series introduces /proc/net files for the protocols.
This patch against af_bluetooth.c provides facility to the implementation
of protocols. This patch extends bt_sock_list and introduces two exported
function bt_procfs_init, bt_procfs_cleanup.
The type bt_sock_list is already used in some of implementation of
protocols. bt_procfs_init prepare seq_operations which converts
protocol own bt_sock_list data to protocol own proc entry when the
entry is accessed.
What I, lsof user, need is just inode number of bluetooth
socket. However, people may want more information. The bt_procfs_init
takes a function pointer for customizing the show handler of
seq_operations.
In v4 patch, __acquires and __releases attributes are added to suppress
sparse warning. Suggested by Andrei Emeltchenko.
In v5 patch, linux/proc_fs.h is included to use PDE. Build error is
reported by Fengguang Wu.
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
2012-07-25 23:26:32 +07:00
|
|
|
struct bt_sock_list* sk_list,
|
|
|
|
int (* seq_show)(struct seq_file *, void *));
|
|
|
|
extern void bt_procfs_cleanup(struct net *net, const char *name);
|
|
|
|
|
2010-03-21 11:27:45 +07:00
|
|
|
extern struct dentry *bt_debugfs;
|
2005-11-09 00:57:38 +07:00
|
|
|
|
2011-02-08 05:08:52 +07:00
|
|
|
int l2cap_init(void);
|
|
|
|
void l2cap_exit(void);
|
|
|
|
|
|
|
|
int sco_init(void);
|
|
|
|
void sco_exit(void);
|
|
|
|
|
2012-01-22 05:28:34 +07:00
|
|
|
void bt_sock_reclassify_lock(struct sock *sk, int proto);
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
#endif /* __BLUETOOTH_H */
|