critical_enter.9 (84306) | critical_enter.9 (88509) |
---|---|
1.\" Copyright (c) 2001 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 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 84306 2001-10-01 16:09:29Z ru $ | 25.\" $FreeBSD: head/share/man/man9/critical_enter.9 88509 2001-12-26 23:14:04Z davidc $ |
26.\" 27.Dd March 22, 2001 28.Dt CRITICAL_ENTER 9 29.Os 30.Sh NAME 31.Nm critical_enter , 32.Nm critical_exit 33.Nd enter and exit a critical region 34.Sh SYNOPSIS 35.In sys/types.h 36.In sys/systm.h | 26.\" 27.Dd March 22, 2001 28.Dt CRITICAL_ENTER 9 29.Os 30.Sh NAME 31.Nm critical_enter , 32.Nm critical_exit 33.Nd enter and exit a critical region 34.Sh SYNOPSIS 35.In sys/types.h 36.In sys/systm.h |
37.Ft critical_t | 37.Ft void |
38.Fn critical_enter "void" 39.Ft void | 38.Fn critical_enter "void" 39.Ft void |
40.Fn critical_exit "critical_t savecrit" | 40.Fn critical_exit "void" |
41.Sh DESCRIPTION 42These functions are used to prevent preemption in a critcal region of code. 43All that is guaranteed is that the current CPU will not be preempted by an 44external interrupt. 45The current CPU may still trigger faults and exceptions during a critical 46section. 47The 48.Fn critical_enter --- 49 unchanged lines hidden --- | 41.Sh DESCRIPTION 42These functions are used to prevent preemption in a critcal region of code. 43All that is guaranteed is that the current CPU will not be preempted by an 44external interrupt. 45The current CPU may still trigger faults and exceptions during a critical 46section. 47The 48.Fn critical_enter --- 49 unchanged lines hidden --- |