Diff for /src/sys/kern/kern_poll.c between versions 1.11 and 1.12

version 1.11, 2004/04/16 14:21:58 version 1.12, 2004/04/21 18:13:47
Line 49 Line 49
 #endif  #endif
   
 /* the two netisr handlers */  /* the two netisr handlers */
static void netisr_poll(struct netmsg *);static int netisr_poll(struct netmsg *);
static void netisr_pollmore(struct netmsg *);static int netisr_pollmore(struct netmsg *);
   
 void init_device_poll(void);            /* init routine                 */  void init_device_poll(void);            /* init routine                 */
 void hardclock_device_poll(void);       /* hook from hardclock          */  void hardclock_device_poll(void);       /* hook from hardclock          */
Line 302  idle_poll(void) Line 302  idle_poll(void)
 static struct timeval poll_start_t;  static struct timeval poll_start_t;
   
 /* ARGSUSED */  /* ARGSUSED */
static voidstatic int
 netisr_pollmore(struct netmsg *msg)  netisr_pollmore(struct netmsg *msg)
 {  {
         struct timeval t;          struct timeval t;
Line 346  netisr_pollmore(struct netmsg *msg) Line 346  netisr_pollmore(struct netmsg *msg)
 out:  out:
         splx(s);          splx(s);
         lwkt_replymsg(&msg->nm_lmsg, 0);          lwkt_replymsg(&msg->nm_lmsg, 0);
           return(EASYNC);
 }  }
   
 /*  /*
Line 354  out: Line 355  out:
  * splimp(), and call all registered handlers.   * splimp(), and call all registered handlers.
  */   */
 /* ARGSUSED */  /* ARGSUSED */
static voidstatic int
 netisr_poll(struct netmsg *msg)  netisr_poll(struct netmsg *msg)
 {  {
         static int reg_frac_count;          static int reg_frac_count;
Line 421  netisr_poll(struct netmsg *msg) Line 422  netisr_poll(struct netmsg *msg)
         phase = 4;          phase = 4;
         splx(s);          splx(s);
         lwkt_replymsg(&msg->nm_lmsg, 0);          lwkt_replymsg(&msg->nm_lmsg, 0);
           return(EASYNC);
 }  }
   
 /*  /*

Removed from v.1.11  
changed lines
  Added in v.1.12