bluetooth.h (14b12d0b98f87162b7e9e93dde66d1af97886567) | bluetooth.h (5a9d0a3ffbc40ea1f5a0636501e7599cbb327bcc) |
---|---|
1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 123 unchanged lines hidden (view full) --- 132 struct hlist_head head; 133 rwlock_t lock; 134}; 135 136int bt_sock_register(int proto, const struct net_proto_family *ops); 137int bt_sock_unregister(int proto); 138void bt_sock_link(struct bt_sock_list *l, struct sock *s); 139void bt_sock_unlink(struct bt_sock_list *l, struct sock *s); | 1/* 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com> 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License version 2 as --- 123 unchanged lines hidden (view full) --- 132 struct hlist_head head; 133 rwlock_t lock; 134}; 135 136int bt_sock_register(int proto, const struct net_proto_family *ops); 137int bt_sock_unregister(int proto); 138void bt_sock_link(struct bt_sock_list *l, struct sock *s); 139void bt_sock_unlink(struct bt_sock_list *l, struct sock *s); |
140int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags); | 140int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock, 141 struct msghdr *msg, size_t len, int flags); |
141int bt_sock_stream_recvmsg(struct kiocb *iocb, struct socket *sock, 142 struct msghdr *msg, size_t len, int flags); 143uint bt_sock_poll(struct file * file, struct socket *sock, poll_table *wait); 144int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); 145int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo); 146 147void bt_accept_enqueue(struct sock *parent, struct sock *sk); 148void bt_accept_unlink(struct sock *sk); --- 18 unchanged lines hidden (view full) --- 167 168 if ((skb = alloc_skb(len + BT_SKB_RESERVE, how))) { 169 skb_reserve(skb, BT_SKB_RESERVE); 170 bt_cb(skb)->incoming = 0; 171 } 172 return skb; 173} 174 | 142int bt_sock_stream_recvmsg(struct kiocb *iocb, struct socket *sock, 143 struct msghdr *msg, size_t len, int flags); 144uint bt_sock_poll(struct file * file, struct socket *sock, poll_table *wait); 145int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); 146int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo); 147 148void bt_accept_enqueue(struct sock *parent, struct sock *sk); 149void bt_accept_unlink(struct sock *sk); --- 18 unchanged lines hidden (view full) --- 168 169 if ((skb = alloc_skb(len + BT_SKB_RESERVE, how))) { 170 skb_reserve(skb, BT_SKB_RESERVE); 171 bt_cb(skb)->incoming = 0; 172 } 173 return skb; 174} 175 |
175static inline struct sk_buff *bt_skb_send_alloc(struct sock *sk, unsigned long len, 176 int nb, int *err) | 176static inline struct sk_buff *bt_skb_send_alloc(struct sock *sk, 177 unsigned long len, int nb, int *err) |
177{ 178 struct sk_buff *skb; 179 180 release_sock(sk); 181 if ((skb = sock_alloc_send_skb(sk, len + BT_SKB_RESERVE, nb, err))) { 182 skb_reserve(skb, BT_SKB_RESERVE); 183 bt_cb(skb)->incoming = 0; 184 } --- 60 unchanged lines hidden --- | 178{ 179 struct sk_buff *skb; 180 181 release_sock(sk); 182 if ((skb = sock_alloc_send_skb(sk, len + BT_SKB_RESERVE, nb, err))) { 183 skb_reserve(skb, BT_SKB_RESERVE); 184 bt_cb(skb)->incoming = 0; 185 } --- 60 unchanged lines hidden --- |