Bluetooth: Consolidate code around sk_alloc into a helper function
[sfrench/cifs-2.6.git] / include / net / bluetooth / bluetooth.h
index af729859385ed866350a032f2f721fbbf47157f1..60689a07b82cb798102ad0a48e4691479bc36e9e 100644 (file)
@@ -400,6 +400,8 @@ int  bt_sock_register(int proto, const struct net_proto_family *ops);
 void bt_sock_unregister(int proto);
 void bt_sock_link(struct bt_sock_list *l, struct sock *s);
 void bt_sock_unlink(struct bt_sock_list *l, struct sock *s);
+struct sock *bt_sock_alloc(struct net *net, struct socket *sock,
+                          struct proto *prot, int proto, gfp_t prio, int kern);
 int  bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
                     int flags);
 int  bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,