aboutsummaryrefslogtreecommitdiff
path: root/en_US.ISO8859-1/books/arch-handbook/locking/chapter.xml
diff options
context:
space:
mode:
Diffstat (limited to 'en_US.ISO8859-1/books/arch-handbook/locking/chapter.xml')
-rw-r--r--en_US.ISO8859-1/books/arch-handbook/locking/chapter.xml89
1 files changed, 44 insertions, 45 deletions
diff --git a/en_US.ISO8859-1/books/arch-handbook/locking/chapter.xml b/en_US.ISO8859-1/books/arch-handbook/locking/chapter.xml
index 4486cfb648..47ec5236ba 100644
--- a/en_US.ISO8859-1/books/arch-handbook/locking/chapter.xml
+++ b/en_US.ISO8859-1/books/arch-handbook/locking/chapter.xml
@@ -5,8 +5,7 @@
$FreeBSD$
-->
-
-<chapter id="locking">
+<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="locking">
<title>Locking Notes</title>
<indexterm><primary>SMP Next Generation Project</primary></indexterm>
@@ -25,7 +24,7 @@
are protected simply by always using atomic operations to access
them.</para>
- <sect1 id="locking-mutexes">
+ <sect1 xml:id="locking-mutexes">
<title>Mutexes</title>
<para>A mutex is simply a lock used to guarantee mutual exclusion.
@@ -99,7 +98,7 @@
<para>A list of data structures or data structure members
that this entry protects. For data structure members, the
name will be in the form of
- <structname>structure name</structname>.<structfield>member name</structfield>.</para>
+ <varname remap="structname">structure name</varname>.<varname remap="structfield">member name</varname>.</para>
</listitem>
</varlistentry>
@@ -152,38 +151,38 @@
<varname>cnt.v_swtch</varname>,
<varname>cp_time</varname>,
<varname>curpriority</varname>,
- <structname>mtx</structname>.<structfield>mtx_blocked</structfield>,
- <structname>mtx</structname>.<structfield>mtx_contested</structfield>,
- <structname>proc</structname>.<structfield>p_procq</structfield>,
- <structname>proc</structname>.<structfield>p_slpq</structfield>,
- <structname>proc</structname>.<structfield>p_sflag</structfield>,
- <structname>proc</structname>.<structfield>p_stat</structfield>,
- <structname>proc</structname>.<structfield>p_estcpu</structfield>,
- <structname>proc</structname>.<structfield>p_cpticks</structfield>
- <structname>proc</structname>.<structfield>p_pctcpu</structfield>,
- <structname>proc</structname>.<structfield>p_wchan</structfield>,
- <structname>proc</structname>.<structfield>p_wmesg</structfield>,
- <structname>proc</structname>.<structfield>p_swtime</structfield>,
- <structname>proc</structname>.<structfield>p_slptime</structfield>,
- <structname>proc</structname>.<structfield>p_runtime</structfield>,
- <structname>proc</structname>.<structfield>p_uu</structfield>,
- <structname>proc</structname>.<structfield>p_su</structfield>,
- <structname>proc</structname>.<structfield>p_iu</structfield>,
- <structname>proc</structname>.<structfield>p_uticks</structfield>,
- <structname>proc</structname>.<structfield>p_sticks</structfield>,
- <structname>proc</structname>.<structfield>p_iticks</structfield>,
- <structname>proc</structname>.<structfield>p_oncpu</structfield>,
- <structname>proc</structname>.<structfield>p_lastcpu</structfield>,
- <structname>proc</structname>.<structfield>p_rqindex</structfield>,
- <structname>proc</structname>.<structfield>p_heldmtx</structfield>,
- <structname>proc</structname>.<structfield>p_blocked</structfield>,
- <structname>proc</structname>.<structfield>p_mtxname</structfield>,
- <structname>proc</structname>.<structfield>p_contested</structfield>,
- <structname>proc</structname>.<structfield>p_priority</structfield>,
- <structname>proc</structname>.<structfield>p_usrpri</structfield>,
- <structname>proc</structname>.<structfield>p_nativepri</structfield>,
- <structname>proc</structname>.<structfield>p_nice</structfield>,
- <structname>proc</structname>.<structfield>p_rtprio</structfield>,
+ <varname remap="structname">mtx</varname>.<varname remap="structfield">mtx_blocked</varname>,
+ <varname remap="structname">mtx</varname>.<varname remap="structfield">mtx_contested</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_procq</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_slpq</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_sflag</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_stat</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_estcpu</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_cpticks</varname>
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_pctcpu</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_wchan</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_wmesg</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_swtime</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_slptime</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_runtime</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_uu</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_su</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_iu</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_uticks</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_sticks</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_iticks</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_oncpu</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_lastcpu</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_rqindex</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_heldmtx</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_blocked</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_mtxname</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_contested</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_priority</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_usrpri</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_nativepri</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_nice</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_rtprio</varname>,
<varname>pscnt</varname>,
<varname>slpque</varname>,
<varname>itqueuebits</varname>,
@@ -258,8 +257,8 @@
<varname>callfree</varname>,
<varname>callwheel</varname>,
<varname>nextsoftcheck</varname>,
- <structname>proc</structname>.<structfield>p_itcallout</structfield>,
- <structname>proc</structname>.<structfield>p_slpcallout</structfield>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_itcallout</varname>,
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_slpcallout</varname>,
<varname>softticks</varname>,
<varname>ticks</varname>
</entry>
@@ -271,7 +270,7 @@
</table>
</sect1>
- <sect1 id="locking-sx">
+ <sect1 xml:id="locking-sx">
<title>Shared Exclusive Locks</title>
<para>These locks provide basic reader-writer type functionality
@@ -301,16 +300,16 @@
<varname>allproc</varname>
<varname>zombproc</varname>
<varname>pidhashtbl</varname>
- <structname>proc</structname>.<structfield>p_list</structfield>
- <structname>proc</structname>.<structfield>p_hash</structfield>
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_list</varname>
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_hash</varname>
<varname>nextpid</varname>
</entry>
</row>
<row>
<entry><varname>proctree_lock</varname></entry>
<entry>
- <structname>proc</structname>.<structfield>p_children</structfield>
- <structname>proc</structname>.<structfield>p_sibling</structfield>
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_children</varname>
+ <varname remap="structname">proc</varname>.<varname remap="structfield">p_sibling</varname>
</entry>
</row>
</tbody>
@@ -318,7 +317,7 @@
</table>
</sect1>
- <sect1 id="locking-atomic">
+ <sect1 xml:id="locking-atomic">
<title>Atomically Protected Variables</title>
<indexterm><primary>atomically protected variables</primary></indexterm>
@@ -333,7 +332,7 @@
<itemizedlist>
<listitem>
- <para><structname>mtx</structname>.<structfield>mtx_lock</structfield></para>
+ <para><varname remap="structname">mtx</varname>.<varname remap="structfield">mtx_lock</varname></para>
</listitem>
</itemizedlist>
</sect1>