netisr.h (175018) | netisr.h (180239) |
---|---|
1/*- 2 * Copyright (c) 1980, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)netisr.h 8.1 (Berkeley) 6/10/93 | 1/*- 2 * Copyright (c) 1980, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)netisr.h 8.1 (Berkeley) 6/10/93 |
30 * $FreeBSD: head/sys/net/netisr.h 175018 2007-12-31 20:58:50Z rwatson $ | 30 * $FreeBSD: head/sys/net/netisr.h 180239 2008-07-04 00:21:38Z rwatson $ |
31 */ 32 33#ifndef _NET_NETISR_H_ 34#define _NET_NETISR_H_ 35 36/* 37 * The netisr (network interrupt service routine) provides a deferred 38 * execution evironment in which (generally inbound) network processing can --- 39 unchanged lines hidden (view full) --- 78 79struct ifqueue; 80struct mbuf; 81 82typedef void netisr_t (struct mbuf *); 83 84void netisr_dispatch(int, struct mbuf *); 85int netisr_queue(int, struct mbuf *); | 31 */ 32 33#ifndef _NET_NETISR_H_ 34#define _NET_NETISR_H_ 35 36/* 37 * The netisr (network interrupt service routine) provides a deferred 38 * execution evironment in which (generally inbound) network processing can --- 39 unchanged lines hidden (view full) --- 78 79struct ifqueue; 80struct mbuf; 81 82typedef void netisr_t (struct mbuf *); 83 84void netisr_dispatch(int, struct mbuf *); 85int netisr_queue(int, struct mbuf *); |
86#define NETISR_MPSAFE 0x0001 /* ISR does not need Giant */ | 86#define NETISR_FORCEQUEUE 0x0002 /* Force queued dispatch. */ |
87void netisr_register(int, netisr_t *, struct ifqueue *, int); 88void netisr_unregister(int); 89 90#endif 91#endif 92 93#endif | 87void netisr_register(int, netisr_t *, struct ifqueue *, int); 88void netisr_unregister(int); 89 90#endif 91#endif 92 93#endif |