root/net/inet/timer.h

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

INCLUDED FROM


   1 /*
   2  * INET         An implementation of the TCP/IP protocol suite for the LINUX
   3  *              operating system.  INET is implemented using the  BSD Socket
   4  *              interface as the means of communication with the user level.
   5  *
   6  *              Definitions for the TIMER module.
   7  *
   8  * Version:     @(#)timer.h     1.0.2   05/23/93
   9  *
  10  * Authors:     Ross Biro, <bir7@leland.Stanford.Edu>
  11  *              Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
  12  *
  13  *              This program is free software; you can redistribute it and/or
  14  *              modify it under the terms of the GNU General Public License
  15  *              as published by the Free Software Foundation; either version
  16  *              2 of the License, or (at your option) any later version.
  17  */
  18 #ifndef _TIMER_H
  19 #define _TIMER_H
  20 
  21 
  22 #define SEQ_TICK        3
  23 #define timer_seq       jiffies
  24 
  25 
  26 struct timer {
  27   unsigned long len;
  28   struct sock *sk;
  29   unsigned long when;
  30   int running;
  31   struct timer *next;
  32 };
  33 
  34 
  35 extern unsigned long seq_offset;
  36 
  37 
  38 extern void     delete_timer(struct timer *);
  39 extern void     reset_timer(struct timer *);
  40 extern void     net_timer(void);
  41 
  42 
  43 #endif  /* _TIMER_H */

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