critical_enter.9 (e5b4afac08cea1a2915240984ba464d66c2a4a57) | critical_enter.9 (b82af3f5e42ab9d848c572b3384fb389fd855ecc) |
---|---|
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. --- 31 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 | 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. --- 31 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 --- |