lib/libexecinfo: Fix static and profiled archives.
[dragonfly.git] / sys / net / if_poll.h
blob0542ff7dc0575fe0daac6cd437becb2c10af0693
1 #ifndef _NET_IF_POLL_H_
2 #define _NET_IF_POLL_H_
4 #ifdef _KERNEL
6 struct sysctl_ctx_list;
7 struct sysctl_oid;
8 struct lwkt_serialize;
9 struct ifnet;
11 typedef void (*ifpoll_iofn_t)(struct ifnet *, void *, int);
12 typedef void (*ifpoll_stfn_t)(struct ifnet *);
14 struct ifpoll_status {
15 struct lwkt_serialize *serializer;
16 ifpoll_stfn_t status_func;
19 struct ifpoll_io {
20 struct lwkt_serialize *serializer;
21 void *arg;
22 ifpoll_iofn_t poll_func;
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];
32 struct ifpoll_compat {
33 int ifpc_stcount;
34 int ifpc_stfrac;
36 int ifpc_cpuid;
37 struct lwkt_serialize *ifpc_serializer;
40 void ifpoll_compat_setup(struct ifpoll_compat *, struct sysctl_ctx_list *,
41 struct sysctl_oid *, int, struct lwkt_serialize *);
43 #endif /* _KERNEL */
45 #endif /* !_NET_IF_POLL_H_ */