summaryrefslogtreecommitdiffstats
path: root/share/man/man9/mi_switch.9
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-03-03 14:05:08 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-03-03 14:05:08 +0000
commit88dd9b4faa11f5f0aa21cbd43fb72503a67b4229 (patch)
tree69062af71195d869d2c940c1869ddf1621cbabfb /share/man/man9/mi_switch.9
parent1b7dce690e9fb2a298fb1e3bedc8186e71b877a3 (diff)
downloadFreeBSD-src-88dd9b4faa11f5f0aa21cbd43fb72503a67b4229.zip
FreeBSD-src-88dd9b4faa11f5f0aa21cbd43fb72503a67b4229.tar.gz
Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
Diffstat (limited to 'share/man/man9/mi_switch.9')
-rw-r--r--share/man/man9/mi_switch.918
1 files changed, 12 insertions, 6 deletions
diff --git a/share/man/man9/mi_switch.9 b/share/man/man9/mi_switch.9
index d4af1f3..638d3a3 100644
--- a/share/man/man9/mi_switch.9
+++ b/share/man/man9/mi_switch.9
@@ -54,7 +54,8 @@
The
.Fn mi_switch
function implements the machine independent prelude to a process context
-switch. It is called from only a few distinguished places in the kernel
+switch.
+It is called from only a few distinguished places in the kernel
code as a result of the principle of non-preemtable kernel mode execution.
The three major uses of
.Nm
@@ -70,10 +71,12 @@ available.
.It
after handling a trap
.Pq e.g. a system call, device interrupt
-when the kernel prepares a return to user-mode execution. This case is
+when the kernel prepares a return to user-mode execution.
+This case is
typically handled by machine dependent trap-handling code after detection
of a change in the signal disposition of the current process, or when a
-higher priority process might be available to run. The latter event is
+higher priority process might be available to run.
+The latter event is
communicated by the machine independent scheduling routines by calling
the machine defined
.Fn need_resched .
@@ -101,7 +104,8 @@ which will perform the actual process context switch.
.Pp
.Fn cpu_switch
will make a choice amongst the processes which are ready to run from a
-priority queue data-structure. The priority queue consists of an array
+priority queue data-structure.
+The priority queue consists of an array
.Va qs[NQS]
of queue header structures each of which identifies a list of runnable
processes of equal priority
@@ -122,8 +126,10 @@ If no processes are available on the run queues,
.Fn cpu_switch
shall go into an
.Dq idle
-loop. The idle loop must allow interrupts to be taken that will eventually
-cause processes to appear again on the run queues. The variable
+loop.
+The idle loop must allow interrupts to be taken that will eventually
+cause processes to appear again on the run queues.
+The variable
.Va curproc
should be
.Dv NULL
OpenPOWER on IntegriCloud