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