root/net/tcp/timer.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   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 #ifndef _TCP_TIMER_H
  23 #define _TCP_TIMER_H
  24 
  25 struct timer
  26 {
  27   unsigned long len;
  28   volatile struct sock *sk;
  29   unsigned long when;
  30   struct timer *next;
  31 };
  32 
  33 
  34 void delete_timer (struct timer *);
  35 void reset_timer (struct timer *);
  36 void net_timer (void);
  37 
  38 #define SEQ_TICK 3
  39 #define timer_seq jiffies
  40 extern unsigned long seq_offset;
  41 #endif

/* [previous][next][first][last][top][bottom][index][help] */