xref: /openbsd/share/man/man9/intr_barrier.9 (revision 4cfece93)
1.\" $OpenBSD: intr_barrier.9,v 1.2 2015/09/13 17:55:42 jmc Exp $
2.\"
3.\" Copyright (c) 2015 Mark Kettenis
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: September 13 2015 $
18.Dt INTR_BARRIER 9
19.Os
20.Sh NAME
21.Nm intr_barrier
22.Nd interrupt barrier
23.Sh SYNOPSIS
24.In machine/intr.h
25.Ft void
26.Fn intr_barrier "void *ih"
27.Sh DESCRIPTION
28This function guarantees that any interrupt handler invocations for the
29interrupt handler specified by
30.Fa ih
31has finished before it returns.
32The cookie passed to
33.Fn intr_barrier
34should be the value returned when the interrupt handler was established,
35for example the return value of
36.Xr pci_intr_establish 9 .
37.Sh CONTEXT
38.Fn intr_barrier
39can be called from process context.
40.Sh SEE ALSO
41.Xr pci_intr_establish 9 ,
42.Xr spl 9
43