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