linux-headers.xml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 expose the kernel's API for use by Glibc.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&linux-headers-ch6-sbu;</seg>
  27. <seg>&linux-headers-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Linux API Headers</title>
  33. <para>The Linux kernel needs to expose an Application Programming Interface
  34. (API) for the system's C library (Glibc in LFS) to utilize. This is done
  35. by way of sanitizing various C header files that are shipped in the Linux
  36. kernel source tarball.</para>
  37. <para>Install the header files:</para>
  38. <screen><userinput remap="install">make mrproper
  39. make headers_check
  40. make INSTALL_HDR_PATH=dest headers_install
  41. cp -rv dest/include/* /usr/include</userinput></screen>
  42. </sect2>
  43. <sect2 id="contents-linux-headers" role="content">
  44. <title>Contents of Linux API Headers</title>
  45. <segmentedlist>
  46. <segtitle>Installed headers</segtitle>
  47. <seglistitem>
  48. <seg>/usr/include/{asm{,-generic},linux,mtd,rdma,sound,video}/*.h</seg>
  49. </seglistitem>
  50. </segmentedlist>
  51. <variablelist>
  52. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  53. <?dbfo list-presentation="list"?>
  54. <?dbhtml list-presentation="table"?>
  55. <varlistentry id="linux-headers">
  56. <term><filename class="headerfile">/usr/include/{asm{,-generic},linux,mtd,rdma,sound}/*.h</filename></term>
  57. <listitem>
  58. <para>The Linux API headers</para>
  59. <indexterm zone="ch-system-linux-headers linux-headers">
  60. <!-- No /*.h here to prevent a PDF line overflow -->
  61. <primary sortas="e-/usr/include/{asm{,-generic},linux,mtd,rdma,sound}">/usr/include/{asm{,-generic},linux,mtd,rdma,sound,video}</primary>
  62. </indexterm>
  63. </listitem>
  64. </varlistentry>
  65. </variablelist>
  66. </sect2>
  67. </sect1>