BUS_SETUP_INTR.9 (217074) | BUS_SETUP_INTR.9 (233648) |
---|---|
1.\" Copyright (c) 2000 Jeroen Ruigrok van der Werven 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" | 1.\" Copyright (c) 2000 Jeroen Ruigrok van der Werven 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" |
25.\" $FreeBSD: head/share/man/man9/BUS_SETUP_INTR.9 217074 2011-01-06 21:14:34Z jhb $ | 25.\" $FreeBSD: head/share/man/man9/BUS_SETUP_INTR.9 233648 2012-03-29 05:02:12Z eadler $ |
26.\" 27.Dd November 3, 2010 28.Dt BUS_SETUP_INTR 9 29.Os 30.Sh NAME 31.Nm BUS_SETUP_INTR , 32.Nm bus_setup_intr , 33.Nm BUS_TEARDOWN_INTR , --- 91 unchanged lines hidden (view full) --- 125returns, it is guaranteed that the interrupt function is not active and 126will no longer be called. 127.Pp 128Mutexes are not allowed to be held across calls to these functions. 129.Ss "Filter Routines" 130A filter runs in primary interrupt context. 131In this context, normal mutexes cannot be used. 132Only the spin lock version of these can be used (specified by passing | 26.\" 27.Dd November 3, 2010 28.Dt BUS_SETUP_INTR 9 29.Os 30.Sh NAME 31.Nm BUS_SETUP_INTR , 32.Nm bus_setup_intr , 33.Nm BUS_TEARDOWN_INTR , --- 91 unchanged lines hidden (view full) --- 125returns, it is guaranteed that the interrupt function is not active and 126will no longer be called. 127.Pp 128Mutexes are not allowed to be held across calls to these functions. 129.Ss "Filter Routines" 130A filter runs in primary interrupt context. 131In this context, normal mutexes cannot be used. 132Only the spin lock version of these can be used (specified by passing |
133.Dv MTX_SPIN 134to | 133.Dv MTX_SPIN 134to |
135.Fn mtx_init 136when initializing the mutex). 137.Xr wakeup 9 138and similar routines can be called. 139Atomic operations from 140.Pa machine/atomic 141may be used. 142Reads and writes to hardware through --- 74 unchanged lines hidden --- | 135.Fn mtx_init 136when initializing the mutex). 137.Xr wakeup 9 138and similar routines can be called. 139Atomic operations from 140.Pa machine/atomic 141may be used. 142Reads and writes to hardware through --- 74 unchanged lines hidden --- |