kern_poll.c (121292) | kern_poll.c (122320) |
---|---|
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: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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> | 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: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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: head/sys/kern/kern_poll.c 121292 2003-10-20 21:14:24Z sam $"); | 29__FBSDID("$FreeBSD: head/sys/kern/kern_poll.c 122320 2003-11-08 22:28:40Z sam $"); |
30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/socket.h> /* needed by net/if.h */ 35#include <sys/sysctl.h> 36 37#include <net/if.h> /* for IFF_* flags */ --- 144 unchanged lines hidden (view full) --- 182}; 183 184static struct pollrec pr[POLL_LIST_LEN]; 185 186static void 187init_device_poll(void) 188{ 189 | 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/socket.h> /* needed by net/if.h */ 35#include <sys/sysctl.h> 36 37#include <net/if.h> /* for IFF_* flags */ --- 144 unchanged lines hidden (view full) --- 182}; 183 184static struct pollrec pr[POLL_LIST_LEN]; 185 186static void 187init_device_poll(void) 188{ 189 |
190 netisr_register(NETISR_POLL, (netisr_t *)netisr_poll, NULL); 191 netisr_register(NETISR_POLLMORE, (netisr_t *)netisr_pollmore, NULL); | 190 netisr_register(NETISR_POLL, (netisr_t *)netisr_poll, NULL, 0); 191 netisr_register(NETISR_POLLMORE, (netisr_t *)netisr_pollmore, NULL, 0); |
192} 193SYSINIT(device_poll, SI_SUB_CLOCKS, SI_ORDER_MIDDLE, init_device_poll, NULL) 194 195 196/* 197 * Hook from hardclock. Tries to schedule a netisr, but keeps track 198 * of lost ticks due to the previous handler taking too long. 199 * Normally, this should not happen, because polling handler should --- 324 unchanged lines hidden --- | 192} 193SYSINIT(device_poll, SI_SUB_CLOCKS, SI_ORDER_MIDDLE, init_device_poll, NULL) 194 195 196/* 197 * Hook from hardclock. Tries to schedule a netisr, but keeps track 198 * of lost ticks due to the previous handler taking too long. 199 * Normally, this should not happen, because polling handler should --- 324 unchanged lines hidden --- |