timer.c (ebf8889bd1fe3615991ff4494635d237280652a2) | timer.c (b24b8a247ff65c01b252025926fe564209fae4fc) |
---|---|
1/* 2 * net/dccp/timer.c 3 * 4 * An implementation of the DCCP protocol 5 * Arnaldo Carvalho de Melo <acme@conectiva.com.br> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 266 unchanged lines hidden (view full) --- 275 bh_unlock_sock(sk); 276 sock_put(sk); 277} 278 279static void dccp_init_write_xmit_timer(struct sock *sk) 280{ 281 struct dccp_sock *dp = dccp_sk(sk); 282 | 1/* 2 * net/dccp/timer.c 3 * 4 * An implementation of the DCCP protocol 5 * Arnaldo Carvalho de Melo <acme@conectiva.com.br> 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 266 unchanged lines hidden (view full) --- 275 bh_unlock_sock(sk); 276 sock_put(sk); 277} 278 279static void dccp_init_write_xmit_timer(struct sock *sk) 280{ 281 struct dccp_sock *dp = dccp_sk(sk); 282 |
283 init_timer(&dp->dccps_xmit_timer); 284 dp->dccps_xmit_timer.data = (unsigned long)sk; 285 dp->dccps_xmit_timer.function = dccp_write_xmit_timer; | 283 setup_timer(&dp->dccps_xmit_timer, dccp_write_xmit_timer, 284 (unsigned long)sk); |
286} 287 288void dccp_init_xmit_timers(struct sock *sk) 289{ 290 dccp_init_write_xmit_timer(sk); 291 inet_csk_init_xmit_timers(sk, &dccp_write_timer, &dccp_delack_timer, 292 &dccp_keepalive_timer); 293} --- 21 unchanged lines hidden --- | 285} 286 287void dccp_init_xmit_timers(struct sock *sk) 288{ 289 dccp_init_write_xmit_timer(sk); 290 inet_csk_init_xmit_timers(sk, &dccp_write_timer, &dccp_delack_timer, 291 &dccp_keepalive_timer); 292} --- 21 unchanged lines hidden --- |