diff options
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.xml | 17 |
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><sys/param.h> -<sys/kobj.h></programlisting> + <programlisting><sys/param.h> +<sys/kobj.h></programlisting> </sect2> <sect2> @@ -147,7 +146,7 @@ KOBJMETHOD(NAME, FUNC)</programlisting> <para>For example:</para> - <programlisting>#include <sys/foo.h></programlisting> + <programlisting>#include <sys/foo.h></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> |