nr_timer.c (5a84d159061d914c8dd4aa372ac6e9529c2be453) | nr_timer.c (b24b8a247ff65c01b252025926fe564209fae4fc) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) 8 * Copyright (C) 2002 Ralf Baechle DO1GRB (ralf@gnu.org) --- 26 unchanged lines hidden (view full) --- 35static void nr_t2timer_expiry(unsigned long); 36static void nr_t4timer_expiry(unsigned long); 37static void nr_idletimer_expiry(unsigned long); 38 39void nr_init_timers(struct sock *sk) 40{ 41 struct nr_sock *nr = nr_sk(sk); 42 | 1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License as published by 4 * the Free Software Foundation; either version 2 of the License, or 5 * (at your option) any later version. 6 * 7 * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) 8 * Copyright (C) 2002 Ralf Baechle DO1GRB (ralf@gnu.org) --- 26 unchanged lines hidden (view full) --- 35static void nr_t2timer_expiry(unsigned long); 36static void nr_t4timer_expiry(unsigned long); 37static void nr_idletimer_expiry(unsigned long); 38 39void nr_init_timers(struct sock *sk) 40{ 41 struct nr_sock *nr = nr_sk(sk); 42 |
43 init_timer(&nr->t1timer); 44 nr->t1timer.data = (unsigned long)sk; 45 nr->t1timer.function = &nr_t1timer_expiry; | 43 setup_timer(&nr->t1timer, nr_t1timer_expiry, (unsigned long)sk); 44 setup_timer(&nr->t2timer, nr_t2timer_expiry, (unsigned long)sk); 45 setup_timer(&nr->t4timer, nr_t4timer_expiry, (unsigned long)sk); 46 setup_timer(&nr->idletimer, nr_idletimer_expiry, (unsigned long)sk); |
46 | 47 |
47 init_timer(&nr->t2timer); 48 nr->t2timer.data = (unsigned long)sk; 49 nr->t2timer.function = &nr_t2timer_expiry; 50 51 init_timer(&nr->t4timer); 52 nr->t4timer.data = (unsigned long)sk; 53 nr->t4timer.function = &nr_t4timer_expiry; 54 55 init_timer(&nr->idletimer); 56 nr->idletimer.data = (unsigned long)sk; 57 nr->idletimer.function = &nr_idletimer_expiry; 58 | |
59 /* initialized by sock_init_data */ 60 sk->sk_timer.data = (unsigned long)sk; 61 sk->sk_timer.function = &nr_heartbeat_expiry; 62} 63 64void nr_start_t1timer(struct sock *sk) 65{ 66 struct nr_sock *nr = nr_sk(sk); --- 194 unchanged lines hidden --- | 48 /* initialized by sock_init_data */ 49 sk->sk_timer.data = (unsigned long)sk; 50 sk->sk_timer.function = &nr_heartbeat_expiry; 51} 52 53void nr_start_t1timer(struct sock *sk) 54{ 55 struct nr_sock *nr = nr_sk(sk); --- 194 unchanged lines hidden --- |