2004-05-03 22:28:58 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 22:28:58 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<sect1 id="ch-system-linux-headers" role="wrap">
|
|
|
|
<?dbhtml filename="linux-headers.html"?>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2007-09-07 20:16:43 +01:00
|
|
|
<sect1info condition="script">
|
|
|
|
<productname>linux</productname>
|
|
|
|
<productnumber>&linux-version;</productnumber>
|
|
|
|
<address>&linux-url;</address>
|
|
|
|
</sect1info>
|
|
|
|
|
2007-02-24 15:09:44 +00:00
|
|
|
<title>Linux-&linux-version; API Headers</title>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<indexterm zone="ch-system-linux-headers">
|
2007-02-24 15:09:44 +00:00
|
|
|
<primary sortas="a-Linux">Linux</primary>
|
|
|
|
<secondary>API headers</secondary>
|
2006-02-05 13:17:43 +00:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2007-02-24 15:09:44 +00:00
|
|
|
<para>The Linux API Headers expose the kernel's API for use by Glibc.</para>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<seglistitem>
|
2006-10-04 18:15:25 +01:00
|
|
|
<seg>&linux-headers-ch6-sbu;</seg>
|
|
|
|
<seg>&linux-headers-ch6-du;</seg>
|
2006-02-05 13:17:43 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</sect2>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<sect2 role="installation">
|
2007-02-24 15:09:44 +00:00
|
|
|
<title>Installation of Linux API Headers</title>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<para>The Linux kernel needs to expose an Application Programming Interface
|
2008-10-27 06:33:21 +00:00
|
|
|
(API) for the system's C library (Glibc in LFS) to use. This is done
|
2006-10-04 18:15:25 +01:00
|
|
|
by way of sanitizing various C header files that are shipped in the Linux
|
|
|
|
kernel source tarball.</para>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2008-10-27 06:33:21 +00:00
|
|
|
<para>First, make sure there are no stale files and dependencies lying around
|
|
|
|
from previous activity:</para>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2008-10-27 06:33:21 +00:00
|
|
|
<screen><userinput remap="install">make mrproper</userinput></screen>
|
|
|
|
|
|
|
|
<para>Now test and extract the user-visible kernel headers from the source.
|
|
|
|
They are placed in an intermediate local directory and copied to the needed
|
|
|
|
location because the extraction process removes any existing files in
|
|
|
|
the target directory.</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="install">make headers_check
|
2007-07-14 16:46:44 +01:00
|
|
|
make INSTALL_HDR_PATH=dest headers_install
|
|
|
|
cp -rv dest/include/* /usr/include</userinput></screen>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</sect2>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<sect2 id="contents-linux-headers" role="content">
|
2007-02-24 15:09:44 +00:00
|
|
|
<title>Contents of Linux API Headers</title>
|
2004-06-19 13:04:20 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed headers</segtitle>
|
2004-06-19 13:04:20 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<seglistitem>
|
2008-01-29 19:54:40 +00:00
|
|
|
<seg>/usr/include/{asm{,-generic},linux,mtd,rdma,sound,video}/*.h</seg>
|
2006-02-05 13:17:43 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<varlistentry id="linux-headers">
|
2007-05-13 11:01:17 +01:00
|
|
|
<term><filename class="headerfile">/usr/include/{asm{,-generic},linux,mtd,rdma,sound}/*.h</filename></term>
|
2006-02-05 13:17:43 +00:00
|
|
|
<listitem>
|
|
|
|
<para>The Linux API headers</para>
|
2006-10-04 18:15:25 +01:00
|
|
|
<indexterm zone="ch-system-linux-headers linux-headers">
|
2007-05-13 11:01:17 +01:00
|
|
|
<!-- No /*.h here to prevent a PDF line overflow -->
|
2008-01-22 19:28:31 +00:00
|
|
|
<primary sortas="e-/usr/include/{asm{,-generic},linux,mtd,rdma,sound}">/usr/include/{asm{,-generic},linux,mtd,rdma,sound,video}</primary>
|
2006-02-05 13:17:43 +00:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-06-19 13:04:20 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</variablelist>
|
2004-06-19 13:04:20 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</sect2>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</sect1>
|