linux-headers.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 use. 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>First, make sure there are no stale files and dependencies lying around
  38. from previous activity:</para>
  39. <screen><userinput remap="install">make mrproper</userinput></screen>
  40. <para>Now test and extract the user-visible kernel headers from the source.
  41. They are placed in an intermediate local directory and copied to the needed
  42. location because the extraction process removes any existing files in
  43. the target directory.</para>
  44. <screen><userinput remap="install">make headers_check
  45. make INSTALL_HDR_PATH=dest headers_install
  46. cp -rv dest/include/* /usr/include</userinput></screen>
  47. </sect2>
  48. <sect2 id="contents-linux-headers" role="content">
  49. <title>Contents of Linux API Headers</title>
  50. <segmentedlist>
  51. <segtitle>Installed headers</segtitle>
  52. <seglistitem>
  53. <seg>/usr/include/{asm{,-generic},linux,mtd,rdma,sound,video}/*.h</seg>
  54. </seglistitem>
  55. </segmentedlist>
  56. <variablelist>
  57. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  58. <?dbfo list-presentation="list"?>
  59. <?dbhtml list-presentation="table"?>
  60. <varlistentry id="linux-headers">
  61. <term><filename class="headerfile">/usr/include/{asm{,-generic},linux,mtd,rdma,sound}/*.h</filename></term>
  62. <listitem>
  63. <para>The Linux API headers</para>
  64. <indexterm zone="ch-system-linux-headers linux-headers">
  65. <!-- No /*.h here to prevent a PDF line overflow -->
  66. <primary sortas="e-/usr/include/{asm{,-generic},linux,mtd,rdma,sound}">/usr/include/{asm{,-generic},linux,mtd,rdma,sound,video}</primary>
  67. </indexterm>
  68. </listitem>
  69. </varlistentry>
  70. </variablelist>
  71. </sect2>
  72. </sect1>