Diff for /src/sys/net/netisr.h between versions 1.12 and 1.13

version 1.12, 2004/04/09 22:34:09 version 1.13, 2004/04/10 00:48:06
Line 80 Line 80
 struct netmsg;  struct netmsg;
   
 typedef void (*netisr_fn_t)(struct netmsg *);  typedef void (*netisr_fn_t)(struct netmsg *);
   typedef boolean_t (*msg_predicate_fn_t)(struct netmsg *);
   
 /*  /*
  * Base class.  All net messages must start with the same fields.   * Base class.  All net messages must start with the same fields.
Line 109  struct netmsg_pr_timeout { Line 110  struct netmsg_pr_timeout {
     void                (*nm_prfn) (void);      void                (*nm_prfn) (void);
 };  };
   
   TAILQ_HEAD(notifymsglist, netmsg_so_notify);
   
   struct netmsg_so_notify {
       struct lwkt_msg                     nm_lmsg;
       netisr_fn_t                         nm_handler;
       msg_predicate_fn_t                  nm_predicate;
       struct socket                       *nm_so;
       int                                 nm_etype;  /* receive or send event */
       TAILQ_ENTRY(netmsg_so_notify)       nm_list;
   };
   
   #define NM_REVENT       0x1             /* event on receive buffer */
   #define NM_SEVENT       0x2             /* event on send buffer */
   
 /*  /*
  * for dispatching pr_ functions,   * for dispatching pr_ functions,
  * until they can be converted to message-passing   * until they can be converted to message-passing
Line 143  void netmsg_pr_dispatcher(struct netmsg Line 158  void netmsg_pr_dispatcher(struct netmsg
 #define CMD_NETMSG_PR_TIMEOUT           (MSG_CMD_NETMSG | 0x0018)  #define CMD_NETMSG_PR_TIMEOUT           (MSG_CMD_NETMSG | 0x0018)
   
 #define CMD_NETMSG_ONCPU                (MSG_CMD_NETMSG | 0x0019)  #define CMD_NETMSG_ONCPU                (MSG_CMD_NETMSG | 0x0019)
   #define CMD_NETMSG_NOTIFY               (MSG_CMD_NETMSG | 0x0020)
   
   void msg_notify_handler(struct netmsg *);
   
 typedef lwkt_port_t (*lwkt_portfn_t)(struct mbuf *);  typedef lwkt_port_t (*lwkt_portfn_t)(struct mbuf *);
   

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