netisr.h (111926) | netisr.h (122320) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)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 --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)netisr.h 8.1 (Berkeley) 6/10/93 |
34 * $FreeBSD: head/sys/net/netisr.h 111926 2003-03-05 19:24:24Z peter $ | 34 * $FreeBSD: head/sys/net/netisr.h 122320 2003-11-08 22:28:40Z sam $ |
35 */ 36 37#ifndef _NET_NETISR_H_ 38#define _NET_NETISR_H_ 39 40/* 41 * The networking code runs off software interrupts. 42 * --- 43 unchanged lines hidden (view full) --- 86 87struct ifqueue; 88struct mbuf; 89 90typedef void netisr_t (struct mbuf *); 91 92void netisr_dispatch(int, struct mbuf *); 93int netisr_queue(int, struct mbuf *); | 35 */ 36 37#ifndef _NET_NETISR_H_ 38#define _NET_NETISR_H_ 39 40/* 41 * The networking code runs off software interrupts. 42 * --- 43 unchanged lines hidden (view full) --- 86 87struct ifqueue; 88struct mbuf; 89 90typedef void netisr_t (struct mbuf *); 91 92void netisr_dispatch(int, struct mbuf *); 93int netisr_queue(int, struct mbuf *); |
94void netisr_register(int, netisr_t *, struct ifqueue *); | 94#define NETISR_MPSAFE 0x0001 /* ISR does not need Giant */ 95void netisr_register(int, netisr_t *, struct ifqueue *, int); |
95void netisr_unregister(int); 96 97#endif 98#endif 99 100#endif | 96void netisr_unregister(int); 97 98#endif 99#endif 100 101#endif |