Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
l2cap_core.c File Reference
#include <linux/module.h>
#include <linux/debugfs.h>
#include <linux/crc16.h>
#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>
#include <net/bluetooth/l2cap.h>
#include <net/bluetooth/smp.h>
#include <net/bluetooth/a2mp.h>

Go to the source code of this file.

Functions

int l2cap_add_psm (struct l2cap_chan *chan, bdaddr_t *src, __le16 psm)
 
int l2cap_add_scid (struct l2cap_chan *chan, __u16 scid)
 
struct l2cap_chanl2cap_chan_create (void)
 
void l2cap_chan_hold (struct l2cap_chan *c)
 
void l2cap_chan_put (struct l2cap_chan *c)
 
void l2cap_chan_set_defaults (struct l2cap_chan *chan)
 
void l2cap_chan_add (struct l2cap_conn *conn, struct l2cap_chan *chan)
 
void l2cap_chan_del (struct l2cap_chan *chan, int err)
 
void l2cap_chan_close (struct l2cap_chan *chan, int reason)
 
int l2cap_chan_check_security (struct l2cap_chan *chan)
 
int l2cap_chan_connect (struct l2cap_chan *chan, __le16 psm, u16 cid, bdaddr_t *dst, u8 dst_type)
 
int __l2cap_wait_ack (struct sock *sk)
 
int l2cap_chan_send (struct l2cap_chan *chan, struct msghdr *msg, size_t len, u32 priority)
 
int l2cap_ertm_init (struct l2cap_chan *chan)
 
void __l2cap_connect_rsp_defer (struct l2cap_chan *chan)
 
void l2cap_chan_busy (struct l2cap_chan *chan, int busy)
 
int l2cap_connect_ind (struct hci_dev *hdev, bdaddr_t *bdaddr)
 
void l2cap_connect_cfm (struct hci_conn *hcon, u8 status)
 
int l2cap_disconn_ind (struct hci_conn *hcon)
 
void l2cap_disconn_cfm (struct hci_conn *hcon, u8 reason)
 
int l2cap_security_cfm (struct hci_conn *hcon, u8 status, u8 encrypt)
 
int l2cap_recv_acldata (struct hci_conn *hcon, struct sk_buff *skb, u16 flags)
 
int __init l2cap_init (void)
 
void l2cap_exit (void)
 
 module_param (disable_ertm, bool, 0644)
 
 MODULE_PARM_DESC (disable_ertm,"Disable enhanced retransmission mode")
 

Variables

bool disable_ertm
 

Function Documentation

void __l2cap_connect_rsp_defer ( struct l2cap_chan chan)

Definition at line 3270 of file l2cap_core.c.

int __l2cap_wait_ack ( struct sock sk)

Definition at line 1579 of file l2cap_core.c.

int l2cap_add_psm ( struct l2cap_chan chan,
bdaddr_t *  src,
__le16  psm 
)

Definition at line 122 of file l2cap_core.c.

int l2cap_add_scid ( struct l2cap_chan chan,
__u16  scid 
)

Definition at line 155 of file l2cap_core.c.

void l2cap_chan_add ( struct l2cap_conn conn,
struct l2cap_chan chan 
)

Definition at line 514 of file l2cap_core.c.

void l2cap_chan_busy ( struct l2cap_chan chan,
int  busy 
)

Definition at line 4495 of file l2cap_core.c.

int l2cap_chan_check_security ( struct l2cap_chan chan)

Definition at line 662 of file l2cap_core.c.

void l2cap_chan_close ( struct l2cap_chan chan,
int  reason 
)

Definition at line 571 of file l2cap_core.c.

int l2cap_chan_connect ( struct l2cap_chan chan,
__le16  psm,
u16  cid,
bdaddr_t *  dst,
u8  dst_type 
)

Definition at line 1440 of file l2cap_core.c.

struct l2cap_chan* l2cap_chan_create ( void  )
read

Definition at line 391 of file l2cap_core.c.

void l2cap_chan_del ( struct l2cap_chan chan,
int  err 
)

Definition at line 521 of file l2cap_core.c.

void l2cap_chan_hold ( struct l2cap_chan c)

Definition at line 432 of file l2cap_core.c.

void l2cap_chan_put ( struct l2cap_chan c)

Definition at line 439 of file l2cap_core.c.

int l2cap_chan_send ( struct l2cap_chan chan,
struct msghdr msg,
size_t  len,
u32  priority 
)

Definition at line 2158 of file l2cap_core.c.

void l2cap_chan_set_defaults ( struct l2cap_chan chan)

Definition at line 446 of file l2cap_core.c.

void l2cap_connect_cfm ( struct hci_conn hcon,
u8  status 
)

Definition at line 5352 of file l2cap_core.c.

int l2cap_connect_ind ( struct hci_dev hdev,
bdaddr_t *  bdaddr 
)

Definition at line 5321 of file l2cap_core.c.

void l2cap_disconn_cfm ( struct hci_conn hcon,
u8  reason 
)

Definition at line 5378 of file l2cap_core.c.

int l2cap_disconn_ind ( struct hci_conn hcon)

Definition at line 5367 of file l2cap_core.c.

int l2cap_ertm_init ( struct l2cap_chan chan)

Definition at line 2735 of file l2cap_core.c.

void l2cap_exit ( void  )

Definition at line 5665 of file l2cap_core.c.

int __init l2cap_init ( void  )

Definition at line 5647 of file l2cap_core.c.

int l2cap_recv_acldata ( struct hci_conn hcon,
struct sk_buff skb,
u16  flags 
)

Definition at line 5519 of file l2cap_core.c.

int l2cap_security_cfm ( struct hci_conn hcon,
u8  status,
u8  encrypt 
)

Definition at line 5401 of file l2cap_core.c.

module_param ( disable_ertm  ,
bool  ,
0644   
)
MODULE_PARM_DESC ( disable_ertm  ,
"Disable enhanced retransmission mode  
)

Variable Documentation

bool disable_ertm

Definition at line 42 of file l2cap_core.c.