mi_switch.9 (204604) | mi_switch.9 (233648) |
---|---|
1.\" $NetBSD: ctxsw.9,v 1.2 1996/12/02 00:11:31 tls Exp $ 2.\" 3.\" Copyright (c) 1996 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Paul Kranenburg. 8.\" --- 13 unchanged lines hidden (view full) --- 22.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" POSSIBILITY OF SUCH DAMAGE. 29.\" | 1.\" $NetBSD: ctxsw.9,v 1.2 1996/12/02 00:11:31 tls Exp $ 2.\" 3.\" Copyright (c) 1996 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Paul Kranenburg. 8.\" --- 13 unchanged lines hidden (view full) --- 22.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" POSSIBILITY OF SUCH DAMAGE. 29.\" |
30.\" $FreeBSD: head/share/man/man9/mi_switch.9 204604 2010-03-02 21:50:36Z joel $ | 30.\" $FreeBSD: head/share/man/man9/mi_switch.9 233648 2012-03-29 05:02:12Z eadler $ |
31.\" 32.Dd November 24, 1996 33.Dt MI_SWITCH 9 34.Os 35.Sh NAME 36.Nm mi_switch , 37.Nm cpu_switch , 38.Nm cpu_throw --- 18 unchanged lines hidden (view full) --- 57.Nm 58can be enumerated as follows: 59.Bl -enum -offset indent 60.It 61From within a function such as 62.Xr cv_wait 9 , 63.Xr mtx_lock , 64or | 31.\" 32.Dd November 24, 1996 33.Dt MI_SWITCH 9 34.Os 35.Sh NAME 36.Nm mi_switch , 37.Nm cpu_switch , 38.Nm cpu_throw --- 18 unchanged lines hidden (view full) --- 57.Nm 58can be enumerated as follows: 59.Bl -enum -offset indent 60.It 61From within a function such as 62.Xr cv_wait 9 , 63.Xr mtx_lock , 64or |
65.Xr tsleep 9 | 65.Xr tsleep 9 |
66when the current thread 67voluntarily relinquishes the CPU to wait for some resource or lock to become 68available. 69.It 70After handling a trap 71(e.g.\& a system call, device interrupt) 72when the kernel prepares a return to user-mode execution. 73This case is --- 85 unchanged lines hidden --- | 66when the current thread 67voluntarily relinquishes the CPU to wait for some resource or lock to become 68available. 69.It 70After handling a trap 71(e.g.\& a system call, device interrupt) 72when the kernel prepares a return to user-mode execution. 73This case is --- 85 unchanged lines hidden --- |