linux-headers.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-linux-headers" role="wrap">
  8. <?dbhtml filename="linux-headers.html"?>
  9. <sect1info condition="script">
  10. <productname>linux</productname>
  11. <productnumber>&linux-version;</productnumber>
  12. <address>&linux-url;</address>
  13. </sect1info>
  14. <title>Linux-&linux-version; API Headers</title>
  15. <indexterm zone="ch-system-linux-headers">
  16. <primary sortas="a-Linux">Linux</primary>
  17. <secondary>API headers</secondary>
  18. </indexterm>
  19. <sect2 role="package">
  20. <title/>
  21. <para>The Linux API Headers (in linux-&linux-version;.tar.xz) expose the
  22. kernel's API for use by Glibc.</para>
  23. <segmentedlist>
  24. <segtitle>&buildtime;</segtitle>
  25. <segtitle>&diskspace;</segtitle>
  26. <seglistitem>
  27. <seg>&linux-headers-ch6-sbu;</seg>
  28. <seg>&linux-headers-ch6-du;</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Linux API Headers</title>
  34. <para>The Linux kernel needs to expose an Application Programming Interface
  35. (API) for the system's C library (Glibc in LFS) to use. This is done
  36. by way of sanitizing various C header files that are shipped in the Linux
  37. kernel source tarball.</para>
  38. <para>Make sure there are no stale files and dependencies lying around
  39. from previous activity:</para>
  40. <screen><userinput remap="pre">make mrproper</userinput></screen>
  41. <para>Now extract the user-visible kernel headers from the source.
  42. They are placed in an intermediate local directory and copied to the needed
  43. location because the extraction process removes any existing files in
  44. the target directory. There are also some hidden files used by
  45. the kernel developers and not needed by LFS that are removed from
  46. the intermediate directory.</para>
  47. <screen><userinput remap="make">make INSTALL_HDR_PATH=dest headers_install
  48. find dest/include \( -name .install -o -name ..install.cmd \) -delete
  49. </userinput><userinput remap="install">cp -rv dest/include/* /usr/include</userinput></screen>
  50. </sect2>
  51. <sect2 id="contents-linux-headers" role="content">
  52. <title>Contents of Linux API Headers</title>
  53. <segmentedlist>
  54. <segtitle>Installed headers</segtitle>
  55. <segtitle>Installed directories</segtitle>
  56. <seglistitem>
  57. <seg>/usr/include/asm/*.h, /usr/include/asm-generic/*.h,
  58. /usr/include/drm/*.h, /usr/include/linux/*.h, /usr/include/mtd/*.h,
  59. /usr/include/rdma/*.h, /usr/include/scsi/*.h, /usr/include/sound/*.h,
  60. /usr/include/video/*.h, and /usr/include/xen/*.h</seg>
  61. <seg>/usr/include/asm, /usr/include/asm-generic, /usr/include/drm,
  62. /usr/include/linux, /usr/include/mtd, /usr/include/rdma,
  63. /usr/include/scsi, /usr/include/sound, /usr/include/video, and /usr/include/xen</seg>
  64. </seglistitem>
  65. </segmentedlist>
  66. <variablelist>
  67. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  68. <?dbfo list-presentation="list"?>
  69. <?dbhtml list-presentation="table"?>
  70. <varlistentry id="asm">
  71. <term><filename class="headerfile">/usr/include/asm/*.h</filename></term>
  72. <listitem>
  73. <para>The Linux API ASM Headers</para>
  74. <indexterm zone="ch-system-linux-headers asm">
  75. <primary sortas="e-/usr/include/asm/*.h">/usr/include/asm/*.h</primary>
  76. </indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="asm-generic">
  80. <term><filename class="headerfile">/usr/include/asm-generic/*.h</filename></term>
  81. <listitem>
  82. <para>The Linux API ASM Generic Headers</para>
  83. <indexterm zone="ch-system-linux-headers asm-generic">
  84. <primary sortas="e-/usr/include/asm-generic/*.h">/usr/include/asm-generic/*.h</primary>
  85. </indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="drm">
  89. <term><filename class="headerfile">/usr/include/drm/*.h</filename></term>
  90. <listitem>
  91. <para>The Linux API DRM Headers</para>
  92. <indexterm zone="ch-system-linux-headers drm">
  93. <primary sortas="e-/usr/include/drm/*.h">/usr/include/drm/*.h</primary>
  94. </indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="linux">
  98. <term><filename class="headerfile">/usr/include/linux/*.h</filename></term>
  99. <listitem>
  100. <para>The Linux API Linux Headers</para>
  101. <indexterm zone="ch-system-linux-headers linux">
  102. <primary sortas="e-/usr/include/linux/*.h">/usr/include/linux/*.h</primary>
  103. </indexterm>
  104. </listitem>
  105. </varlistentry>
  106. <varlistentry id="mtd">
  107. <term><filename class="headerfile">/usr/include/mtd/*.h</filename></term>
  108. <listitem>
  109. <para>The Linux API MTD Headers</para>
  110. <indexterm zone="ch-system-linux-headers mtd">
  111. <primary sortas="e-/usr/include/mtd/*.h">/usr/include/mtd/*.h</primary>
  112. </indexterm>
  113. </listitem>
  114. </varlistentry>
  115. <varlistentry id="rdma">
  116. <term><filename class="headerfile">/usr/include/rdma/*.h</filename></term>
  117. <listitem>
  118. <para>The Linux API RDMA Headers</para>
  119. <indexterm zone="ch-system-linux-headers rdma">
  120. <primary sortas="e-/usr/include/rdma/*.h">/usr/include/rdma/*.h</primary>
  121. </indexterm>
  122. </listitem>
  123. </varlistentry>
  124. <varlistentry id="scsi">
  125. <term><filename class="headerfile">/usr/include/scsi/*.h</filename></term>
  126. <listitem>
  127. <para>The Linux API SCSI Headers</para>
  128. <indexterm zone="ch-system-linux-headers scsi">
  129. <primary sortas="e-/usr/include/scsi/*.h">/usr/include/scsi/*.h</primary>
  130. </indexterm>
  131. </listitem>
  132. </varlistentry>
  133. <varlistentry id="sound">
  134. <term><filename class="headerfile">/usr/include/sound/*.h</filename></term>
  135. <listitem>
  136. <para>The Linux API Sound Headers</para>
  137. <indexterm zone="ch-system-linux-headers sound">
  138. <primary sortas="e-/usr/include/sound/*.h">/usr/include/sound/*.h</primary>
  139. </indexterm>
  140. </listitem>
  141. </varlistentry>
  142. <varlistentry id="video">
  143. <term><filename class="headerfile">/usr/include/video/*.h</filename></term>
  144. <listitem>
  145. <para>The Linux API Video Headers</para>
  146. <indexterm zone="ch-system-linux-headers video">
  147. <primary sortas="e-/usr/include/video/*.h">/usr/include/video/*.h</primary>
  148. </indexterm>
  149. </listitem>
  150. </varlistentry>
  151. <varlistentry id="xen">
  152. <term><filename class="headerfile">/usr/include/xen/*.h</filename></term>
  153. <listitem>
  154. <para>The Linux API Xen Headers</para>
  155. <indexterm zone="ch-system-linux-headers xen">
  156. <primary sortas="e-/usr/include/xen/*.h">/usr/include/xen/*.h</primary>
  157. </indexterm>
  158. </listitem>
  159. </varlistentry>
  160. </variablelist>
  161. </sect2>
  162. </sect1>