Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
af_bluetooth.c File Reference
#include <linux/module.h>
#include <asm/ioctls.h>
#include <net/bluetooth/bluetooth.h>
#include <linux/proc_fs.h>

Go to the source code of this file.

Macros

#define VERSION   "2.16"
 
#define BT_MAX_PROTO   8
 

Functions

void bt_sock_reclassify_lock (struct sock *sk, int proto)
 
 EXPORT_SYMBOL (bt_sock_reclassify_lock)
 
int bt_sock_register (int proto, const struct net_proto_family *ops)
 
 EXPORT_SYMBOL (bt_sock_register)
 
int bt_sock_unregister (int proto)
 
 EXPORT_SYMBOL (bt_sock_unregister)
 
void bt_sock_link (struct bt_sock_list *l, struct sock *sk)
 
 EXPORT_SYMBOL (bt_sock_link)
 
void bt_sock_unlink (struct bt_sock_list *l, struct sock *sk)
 
 EXPORT_SYMBOL (bt_sock_unlink)
 
void bt_accept_enqueue (struct sock *parent, struct sock *sk)
 
 EXPORT_SYMBOL (bt_accept_enqueue)
 
void bt_accept_unlink (struct sock *sk)
 
 EXPORT_SYMBOL (bt_accept_unlink)
 
struct sockbt_accept_dequeue (struct sock *parent, struct socket *newsock)
 
 EXPORT_SYMBOL (bt_accept_dequeue)
 
int bt_sock_recvmsg (struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags)
 
 EXPORT_SYMBOL (bt_sock_recvmsg)
 
int bt_sock_stream_recvmsg (struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t size, int flags)
 
 EXPORT_SYMBOL (bt_sock_stream_recvmsg)
 
unsigned int bt_sock_poll (struct file *file, struct socket *sock, poll_table *wait)
 
 EXPORT_SYMBOL (bt_sock_poll)
 
int bt_sock_ioctl (struct socket *sock, unsigned int cmd, unsigned long arg)
 
 EXPORT_SYMBOL (bt_sock_ioctl)
 
int bt_sock_wait_state (struct sock *sk, int state, unsigned long timeo)
 
 EXPORT_SYMBOL (bt_sock_wait_state)
 
int bt_procfs_init (struct module *module, struct net *net, const char *name, struct bt_sock_list *sk_list, int(*seq_show)(struct seq_file *, void *))
 
void bt_procfs_cleanup (struct net *net, const char *name)
 
 EXPORT_SYMBOL (bt_procfs_init)
 
 EXPORT_SYMBOL (bt_procfs_cleanup)
 
 subsys_initcall (bt_init)
 
 module_exit (bt_exit)
 
 MODULE_AUTHOR ("Marcel Holtmann <[email protected]>")
 
 MODULE_DESCRIPTION ("Bluetooth Core ver "VERSION)
 
 MODULE_VERSION (VERSION)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_NETPROTO (PF_BLUETOOTH)
 

Macro Definition Documentation

#define BT_MAX_PROTO   8

Definition at line 36 of file af_bluetooth.c.

#define VERSION   "2.16"

Definition at line 33 of file af_bluetooth.c.

Function Documentation

struct sock* bt_accept_dequeue ( struct sock parent,
struct socket newsock 
)
read

Definition at line 183 of file af_bluetooth.c.

void bt_accept_enqueue ( struct sock parent,
struct sock sk 
)

Definition at line 161 of file af_bluetooth.c.

void bt_accept_unlink ( struct sock sk)

Definition at line 172 of file af_bluetooth.c.

void bt_procfs_cleanup ( struct net net,
const char name 
)

Definition at line 667 of file af_bluetooth.c.

int bt_procfs_init ( struct module module,
struct net net,
const char name,
struct bt_sock_list sk_list,
int(*)(struct seq_file *, void *)  seq_show 
)

Definition at line 660 of file af_bluetooth.c.

int bt_sock_ioctl ( struct socket sock,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 453 of file af_bluetooth.c.

void bt_sock_link ( struct bt_sock_list l,
struct sock sk 
)

Definition at line 145 of file af_bluetooth.c.

unsigned int bt_sock_poll ( struct file file,
struct socket sock,
poll_table wait 
)

Definition at line 411 of file af_bluetooth.c.

void bt_sock_reclassify_lock ( struct sock sk,
int  proto 
)

Definition at line 64 of file af_bluetooth.c.

int bt_sock_recvmsg ( struct kiocb iocb,
struct socket sock,
struct msghdr msg,
size_t  len,
int  flags 
)

Definition at line 219 of file af_bluetooth.c.

int bt_sock_register ( int  proto,
const struct net_proto_family ops 
)

Definition at line 75 of file af_bluetooth.c.

int bt_sock_stream_recvmsg ( struct kiocb iocb,
struct socket sock,
struct msghdr msg,
size_t  size,
int  flags 
)

Definition at line 288 of file af_bluetooth.c.

void bt_sock_unlink ( struct bt_sock_list l,
struct sock sk 
)

Definition at line 153 of file af_bluetooth.c.

int bt_sock_unregister ( int  proto)

Definition at line 95 of file af_bluetooth.c.

int bt_sock_wait_state ( struct sock sk,
int  state,
unsigned long  timeo 
)

Definition at line 501 of file af_bluetooth.c.

EXPORT_SYMBOL ( bt_sock_reclassify_lock  )
EXPORT_SYMBOL ( bt_sock_register  )
EXPORT_SYMBOL ( bt_sock_unregister  )
EXPORT_SYMBOL ( bt_sock_link  )
EXPORT_SYMBOL ( bt_sock_unlink  )
EXPORT_SYMBOL ( bt_accept_enqueue  )
EXPORT_SYMBOL ( bt_accept_unlink  )
EXPORT_SYMBOL ( bt_accept_dequeue  )
EXPORT_SYMBOL ( bt_sock_recvmsg  )
EXPORT_SYMBOL ( bt_sock_stream_recvmsg  )
EXPORT_SYMBOL ( bt_sock_poll  )
EXPORT_SYMBOL ( bt_sock_ioctl  )
EXPORT_SYMBOL ( bt_sock_wait_state  )
EXPORT_SYMBOL ( bt_procfs_init  )
EXPORT_SYMBOL ( bt_procfs_cleanup  )
MODULE_ALIAS_NETPROTO ( PF_BLUETOOTH  )
MODULE_AUTHOR ( "Marcel Holtmann <[email protected]>"  )
MODULE_DESCRIPTION ( "Bluetooth Core ver VERSION)
module_exit ( bt_exit  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( VERSION  )
subsys_initcall ( bt_init  )