1 /* timer.h */ 2 /* 3 Copyright (C) 1992 Ross Biro 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 1, or (at your option) 8 any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 19 The Author may be reached as bir7@leland.stanford.edu or 20 C/O Department of Mathematics; Stanford University; Stanford, CA 94305 21 */ 22 /* $Id: timer.h,v 0.8.4.2 1993/01/23 18:00:11 bir7 Exp $ */ 23 /* $Log: timer.h,v $ 24 * Revision 0.8.4.2 1993/01/23 18:00:11 bir7 25 * added volatile keyword. 26 * 27 * Revision 0.8.4.1 1992/11/10 00:17:18 bir7 28 * version change only. 29 * 30 * Revision 0.8.3.2 1992/11/10 00:14:47 bir7 31 * Changed malloc to kmalloc and added $iId$ and $Log: timer.h,v $ 32 * Revision 0.8.4.2 1993/01/23 18:00:11 bir7 33 * added volatile keyword. 34 * 35 * Revision 0.8.4.1 1992/11/10 00:17:18 bir7 36 * version change only. 37 *. 38 * */ 39 40 #ifndef _TCP_TIMER_H 41 #define _TCP_TIMER_H 42 43 struct timer 44 { 45 unsigned long len; 46 volatile struct sock *sk; 47 unsigned long when; 48 volatile struct timer *next; 49 }; 50 51 52 void delete_timer (struct timer *); 53 void reset_timer (struct timer *); 54 void net_timer (void); 55 56 #define SEQ_TICK 3 57 #define timer_seq jiffies 58 extern unsigned long seq_offset; 59 #endif