aboutsummaryrefslogtreecommitdiff
path: root/en_US.ISO8859-1/books/arch-handbook/kobj/chapter.xml
diff options
context:
space:
mode:
Diffstat (limited to 'en_US.ISO8859-1/books/arch-handbook/kobj/chapter.xml')
-rw-r--r--en_US.ISO8859-1/books/arch-handbook/kobj/chapter.xml17
1 files changed, 8 insertions, 9 deletions
diff --git a/en_US.ISO8859-1/books/arch-handbook/kobj/chapter.xml b/en_US.ISO8859-1/books/arch-handbook/kobj/chapter.xml
index f08b847166..e52d1603d4 100644
--- a/en_US.ISO8859-1/books/arch-handbook/kobj/chapter.xml
+++ b/en_US.ISO8859-1/books/arch-handbook/kobj/chapter.xml
@@ -4,8 +4,7 @@
$FreeBSD$
-->
-
-<chapter id="kernel-objects">
+<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="kernel-objects">
<title>Kernel Objects</title>
<indexterm><primary>Kernel Objects</primary></indexterm>
@@ -18,7 +17,7 @@
interface at run time and without breaking binary
compatibility.</para>
- <sect1 id="kernel-objects-term">
+ <sect1 xml:id="kernel-objects-term">
<title>Terminology</title>
<indexterm><primary>object</primary></indexterm>
@@ -54,7 +53,7 @@
</variablelist>
</sect1>
- <sect1 id="kernel-objects-operation">
+ <sect1 xml:id="kernel-objects-operation">
<title>Kobj Operation</title>
<para>Kobj works by generating descriptions of methods. Each
@@ -86,7 +85,7 @@
</sect1>
- <sect1 id="kernel-objects-using">
+ <sect1 xml:id="kernel-objects-using">
<title>Using Kobj</title>
<sect2>
@@ -118,8 +117,8 @@ KOBJMETHOD(NAME, FUNC)</programlisting>
<sect2>
<title>Headers</title>
- <programlisting>&lt;sys/param.h>
-&lt;sys/kobj.h></programlisting>
+ <programlisting>&lt;sys/param.h&gt;
+&lt;sys/kobj.h&gt;</programlisting>
</sect2>
<sect2>
@@ -147,7 +146,7 @@ KOBJMETHOD(NAME, FUNC)</programlisting>
<para>For example:</para>
- <programlisting>#include &lt;sys/foo.h></programlisting>
+ <programlisting>#include &lt;sys/foo.h&gt;</programlisting>
<para>The <literal>INTERFACE</literal> keyword is used to define
the interface name. This name is concatenated with each method
@@ -242,7 +241,7 @@ kobj_method_t foomethods[] = {
the state of the system at the time that the class is to be
initialized a statically allocated cache, <quote>ops
table</quote> have to be used. This can be accomplished by
- declaring a <structname>struct kobj_ops</structname> and using
+ declaring a <varname remap="structname">struct kobj_ops</varname> and using
<function>kobj_class_compile_static();</function> otherwise,
<function>kobj_class_compile()</function> should be used.</para>
</sect2>