Deleted Added
full compact
critical_enter.9 (88891) critical_enter.9 (89124)
1.\" Copyright (c) 2001,2002 John H. Baldwin <jhb@FreeBSD.org>
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) 2001,2002 John H. Baldwin <jhb@FreeBSD.org>
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/critical_enter.9 88891 2002-01-04 23:56:17Z jhb $
25.\" $FreeBSD: head/share/man/man9/critical_enter.9 89124 2002-01-09 11:43:48Z mpp $
26.\"
27.Dd March 22, 2001
28.Dt CRITICAL_ENTER 9
29.Os
30.Sh NAME
31.Nm cpu_critical_enter ,
32.Nm cpu_critical_exit ,
33.Nm critical_enter ,

--- 6 unchanged lines hidden (view full) ---

40.Fn cpu_critical_enter "void"
41.Ft void
42.Fn cpu_critical_exit "critical_t savecrit"
43.Ft void
44.Fn critical_enter "void"
45.Ft void
46.Fn critical_exit "void"
47.Sh DESCRIPTION
26.\"
27.Dd March 22, 2001
28.Dt CRITICAL_ENTER 9
29.Os
30.Sh NAME
31.Nm cpu_critical_enter ,
32.Nm cpu_critical_exit ,
33.Nm critical_enter ,

--- 6 unchanged lines hidden (view full) ---

40.Fn cpu_critical_enter "void"
41.Ft void
42.Fn cpu_critical_exit "critical_t savecrit"
43.Ft void
44.Fn critical_enter "void"
45.Ft void
46.Fn critical_exit "void"
47.Sh DESCRIPTION
48These functions are used to prevent preemption in a critcal region of code.
48These functions are used to prevent preemption in a critical region of code.
49All that is guaranteed is that the thread currently executing on a CPU will
50not be preempted.
51Specifically, a thread in a critical region will not migrate to another
52CPU while it is in a critical region.
53The current CPU may still trigger faults and exceptions during a critical
54section; however, these faults are usually fatal.
55.Pp
56The

--- 71 unchanged lines hidden ---
49All that is guaranteed is that the thread currently executing on a CPU will
50not be preempted.
51Specifically, a thread in a critical region will not migrate to another
52CPU while it is in a critical region.
53The current CPU may still trigger faults and exceptions during a critical
54section; however, these faults are usually fatal.
55.Pp
56The

--- 71 unchanged lines hidden ---