kern_poll.c (9ea9ef7e894849cb7bdf2ec0257c1fd1268145e0) kern_poll.c (33553d6e997f102da7a5f27d534b3ee57beb0a87)
1/*-
2 * Copyright (c) 2001-2002 Luigi Rizzo
3 *
4 * Supported by: the Xorp Project (www.xorp.org)
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 14 unchanged lines hidden (view full) ---

23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD$");
30
1/*-
2 * Copyright (c) 2001-2002 Luigi Rizzo
3 *
4 * Supported by: the Xorp Project (www.xorp.org)
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 14 unchanged lines hidden (view full) ---

23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD$");
30
31#include "opt_route.h"
31#include "opt_device_polling.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/kthread.h>
37#include <sys/proc.h>
38#include <sys/resourcevar.h>
39#include <sys/socket.h> /* needed by net/if.h */
40#include <sys/sockio.h>
41#include <sys/sysctl.h>
42#include <sys/syslog.h>
43#include <sys/vimage.h>
44
45#include <net/if.h> /* for IFF_* flags */
46#include <net/netisr.h> /* for NETISR_POLL */
32#include "opt_device_polling.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/kthread.h>
38#include <sys/proc.h>
39#include <sys/resourcevar.h>
40#include <sys/socket.h> /* needed by net/if.h */
41#include <sys/sockio.h>
42#include <sys/sysctl.h>
43#include <sys/syslog.h>
44#include <sys/vimage.h>
45
46#include <net/if.h> /* for IFF_* flags */
47#include <net/netisr.h> /* for NETISR_POLL */
48#include <net/route.h>
47#include <net/vnet.h>
48
49static void netisr_poll(void); /* the two netisr handlers */
50static void netisr_pollmore(void);
51static int poll_switch(SYSCTL_HANDLER_ARGS);
52
53void hardclock_device_poll(void); /* hook from hardclock */
54void ether_poll(int); /* polling in idle loop */

--- 543 unchanged lines hidden ---
49#include <net/vnet.h>
50
51static void netisr_poll(void); /* the two netisr handlers */
52static void netisr_pollmore(void);
53static int poll_switch(SYSCTL_HANDLER_ARGS);
54
55void hardclock_device_poll(void); /* hook from hardclock */
56void ether_poll(int); /* polling in idle loop */

--- 543 unchanged lines hidden ---