summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-01-24 09:41:17 +0000
committerru <ru@FreeBSD.org>2001-01-24 09:41:17 +0000
commitcc7cdf26c0d8a078e15afdf4eddacc24c69633e4 (patch)
treed29664e81a4fa3637325e878aba7ad0af511e6df /share
parente5adbdcf1bb0d889713347ba843db53e5782b2f1 (diff)
downloadFreeBSD-src-cc7cdf26c0d8a078e15afdf4eddacc24c69633e4.zip
FreeBSD-src-cc7cdf26c0d8a078e15afdf4eddacc24c69633e4.tar.gz
mdoc(7) police: fixed some minor formatting/spelling errors.
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/runqueue.914
-rw-r--r--share/man/man9/scheduler.922
-rw-r--r--share/man/man9/sleepqueue.94
3 files changed, 20 insertions, 20 deletions
diff --git a/share/man/man9/runqueue.9 b/share/man/man9/runqueue.9
index e881cbd..fb154b9 100644
--- a/share/man/man9/runqueue.9
+++ b/share/man/man9/runqueue.9
@@ -23,7 +23,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd Nov 3, 2000
+.Dd November 3, 2000
.Dt RUNQUEUE 9
.Os
.Sh NAME
@@ -35,10 +35,10 @@
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/proc.h>
-.Vt extern struct rq itqueues[];
-.Vt extern struct rq rtqueues[];
-.Vt extern struct rq queues[];
-.Vt extern struct rq idqueues[];
+.Vt "extern struct rq itqueues[]" ;
+.Vt "extern struct rq rtqueues[]" ;
+.Vt "extern struct rq queues[]" ;
+.Vt "extern struct rq idqueues[]" ;
.Ft struct proc *
.Fn chooseproc "void"
.Ft u_int32_t
@@ -89,7 +89,7 @@ In that case the second CPU will simply travel through the idle loop one
additional time before noticing that there is a runnable process.
This works because idle CPUs are not halted in SMP systems.
If idle CPUs are halted in SMP systems, then this race condition might have
-more serious repurcussions in the losing case, and
+more serious repercussions in the losing case, and
.Fn procrunnable
may have to require that the
.Va sched_lock
@@ -112,7 +112,7 @@ mutex held.
adds the process
.Fa p
to the tail of the appropriate queue in the proper priority queue.
-The process must be runnable, i.e.
+The process must be runnable, i.e.\&
.Va p_stat
must be set to
.Dv SRUN .
diff --git a/share/man/man9/scheduler.9 b/share/man/man9/scheduler.9
index 5cd2645..3aa93e4 100644
--- a/share/man/man9/scheduler.9
+++ b/share/man/man9/scheduler.9
@@ -23,7 +23,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd Nov 3, 2000
+.Dd November 3, 2000
.Dt SCHEDULER 9
.Os
.Sh NAME
@@ -65,7 +65,7 @@
.Fn updatepri "struct proc *p"
.Sh DESCRIPTION
Each process has three different priorities stored in
-.Li struct proc :
+.Vt "struct proc" :
.Va p_usrpri ,
.Va p_nativepri ,
and
@@ -73,14 +73,14 @@ and
.Pp
The
.Va p_usrpri
-member is the user priority of the process calcuated from a process'
+member is the user priority of the process calculated from a process'
estimated CPU time and nice level.
.Pp
The
.Va p_nativepri
member is the saved priority used by
.Fn propagate_priority .
-When a process obtains a mutex, it's priority is saved in
+When a process obtains a mutex, its priority is saved in
.Va p_nativepri .
While it holds the mutex, the process's priority may be bumped by another
process that blocks on the mutex.
@@ -110,7 +110,7 @@ then
will return zero.
The cached priority of the currently running process is updated when a process
resumes from
-.Xr tsleep 9 .
+.Xr tsleep 9
or returns to userland in
.Fn userret
and is stored in the private variable
@@ -130,10 +130,10 @@ is called to force a reschedule on the next return to userland.
The
.Fn propagate_priority
looks at the process that owns the mutex
-.Ar p
+.Fa p
is blocked on.
That process's priority is bumped to the priority of
-.Ar p
+.Fa p
if needed.
If the process is currently running, then the function returns.
If the process is on a
@@ -148,7 +148,7 @@ Then, the function repeats the procedure using the process that owns the
mutex just encountered.
Note that an process's priorities are only bumped to the priority of the
original process
-.Ar p ,
+.Fa p ,
not to the priority of the previously encountered process.
.Pp
The
@@ -197,7 +197,7 @@ function is called by
.Fn statclock
to adjust the priority of the currently running process.
It updates the process's estimated CPU time and then adjusts the priority via
-.Fn reset_priority .
+.Fn resetpriority .
.Pp
The
.Fn schedcpu
@@ -223,7 +223,7 @@ Once all process priorities have been updated,
calls
.Fn vmmeter
to update various other statistics including the load average.
-Finally, it schedules itselt to run again in
+Finally, it schedules itself to run again in
.Va hz
clock ticks.
.Pp
@@ -261,7 +261,7 @@ variable really should be per-CPU.
In addition,
.Fn maybe_resched
should compare the priority of
-.Ar chk
+.Fa chk
with that of each CPU, and then send an IPI to the processor with the lowest
priority to trigger a reschedule if needed.
.Pp
diff --git a/share/man/man9/sleepqueue.9 b/share/man/man9/sleepqueue.9
index 6a561d6..6470650 100644
--- a/share/man/man9/sleepqueue.9
+++ b/share/man/man9/sleepqueue.9
@@ -23,7 +23,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd Nov 3, 2000
+.Dd November 3, 2000
.Dt SLEEPQUEUE 9
.Os
.Sh NAME
@@ -64,7 +64,7 @@ If the process is not awakened soon enough, then
is called with
.Fa arg
pointing to the
-.Li struct proc
+.Vt "struct proc"
of the process that timed out.
.Fn endtsleep
undoes the sleep and makes the process runnable if it is in the
OpenPOWER on IntegriCloud