diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-05-02 17:25:01 -0400 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-06-08 15:58:16 -0400 |
commit | ab07801d28985090ac38047b5a4d8952a7e1689f (patch) | |
tree | 9ae945f55141b32b779c6a5969806725b39c09c3 /include/net | |
parent | 715ec005cd10c5d53109ffe513e4d403644e3e48 (diff) |
Bluetooth: create channel timer to replace sk_timer
The new timer does not belong to struct sock, tought it still touch some
sock things, but this will be sorted out soon.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/bluetooth/l2cap.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index 094a7ac16ffe..efb1fc4f3a03 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h | |||
@@ -340,6 +340,7 @@ struct l2cap_chan { | |||
340 | __u8 remote_max_tx; | 340 | __u8 remote_max_tx; |
341 | __u16 remote_mps; | 341 | __u16 remote_mps; |
342 | 342 | ||
343 | struct timer_list chan_timer; | ||
343 | struct timer_list retrans_timer; | 344 | struct timer_list retrans_timer; |
344 | struct timer_list monitor_timer; | 345 | struct timer_list monitor_timer; |
345 | struct timer_list ack_timer; | 346 | struct timer_list ack_timer; |
@@ -457,12 +458,12 @@ int __l2cap_wait_ack(struct sock *sk); | |||
457 | int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm); | 458 | int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm); |
458 | int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid); | 459 | int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid); |
459 | 460 | ||
460 | void l2cap_sock_set_timer(struct sock *sk, long timeout); | ||
461 | void l2cap_sock_clear_timer(struct sock *sk); | ||
462 | void l2cap_sock_kill(struct sock *sk); | 461 | void l2cap_sock_kill(struct sock *sk); |
463 | void l2cap_sock_init(struct sock *sk, struct sock *parent); | 462 | void l2cap_sock_init(struct sock *sk, struct sock *parent); |
464 | struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, | 463 | struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, |
465 | int proto, gfp_t prio); | 464 | int proto, gfp_t prio); |
465 | |||
466 | void l2cap_chan_clear_timer(struct l2cap_chan *chan); | ||
466 | struct l2cap_chan *l2cap_chan_create(struct sock *sk); | 467 | struct l2cap_chan *l2cap_chan_create(struct sock *sk); |
467 | void __l2cap_chan_close(struct l2cap_chan *chan, int reason); | 468 | void __l2cap_chan_close(struct l2cap_chan *chan, int reason); |
468 | void l2cap_chan_destroy(struct l2cap_chan *chan); | 469 | void l2cap_chan_destroy(struct l2cap_chan *chan); |