The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/net/if_poll.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #ifndef _NET_IF_POLL_H_
    2 #define _NET_IF_POLL_H_
    3 
    4 #ifdef _KERNEL
    5 
    6 struct sysctl_ctx_list;
    7 struct sysctl_oid;
    8 struct lwkt_serialize;
    9 struct ifnet;
   10 
   11 typedef void    (*ifpoll_iofn_t)(struct ifnet *, void *, int);
   12 typedef void    (*ifpoll_stfn_t)(struct ifnet *);
   13 
   14 struct ifpoll_status {
   15         struct lwkt_serialize   *serializer;
   16         ifpoll_stfn_t           status_func;
   17 };
   18 
   19 struct ifpoll_io {
   20         struct lwkt_serialize   *serializer;
   21         void                    *arg;
   22         ifpoll_iofn_t           poll_func;
   23 };
   24 
   25 struct ifpoll_info {
   26         struct ifnet            *ifpi_ifp;
   27         struct ifpoll_status    ifpi_status;
   28         struct ifpoll_io        ifpi_rx[MAXCPU];
   29         struct ifpoll_io        ifpi_tx[MAXCPU];
   30 };
   31 
   32 struct ifpoll_compat {
   33         int                     ifpc_stcount;
   34         int                     ifpc_stfrac;
   35 
   36         int                     ifpc_cpuid;
   37         struct lwkt_serialize   *ifpc_serializer;
   38 };
   39 
   40 void    ifpoll_compat_setup(struct ifpoll_compat *, struct sysctl_ctx_list *,
   41             struct sysctl_oid *, int, struct lwkt_serialize *);
   42 
   43 #endif  /* _KERNEL */
   44 
   45 #endif  /* !_NET_IF_POLL_H_ */

Cache object: 8262323dbd923294706b49093b570387


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.