| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> | 
|  | 2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" | 
|  | 3 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" []> | 
|  | 4 |  | 
|  | 5 | <book id="LinuxKernelAPI"> | 
|  | 6 | <bookinfo> | 
|  | 7 | <title>The Linux Kernel API</title> | 
|  | 8 |  | 
|  | 9 | <legalnotice> | 
|  | 10 | <para> | 
|  | 11 | This documentation is free software; you can redistribute | 
|  | 12 | it and/or modify it under the terms of the GNU General Public | 
|  | 13 | License as published by the Free Software Foundation; either | 
|  | 14 | version 2 of the License, or (at your option) any later | 
|  | 15 | version. | 
|  | 16 | </para> | 
|  | 17 |  | 
|  | 18 | <para> | 
|  | 19 | This program is distributed in the hope that it will be | 
|  | 20 | useful, but WITHOUT ANY WARRANTY; without even the implied | 
|  | 21 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 
|  | 22 | See the GNU General Public License for more details. | 
|  | 23 | </para> | 
|  | 24 |  | 
|  | 25 | <para> | 
|  | 26 | You should have received a copy of the GNU General Public | 
|  | 27 | License along with this program; if not, write to the Free | 
|  | 28 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, | 
|  | 29 | MA 02111-1307 USA | 
|  | 30 | </para> | 
|  | 31 |  | 
|  | 32 | <para> | 
|  | 33 | For more details see the file COPYING in the source | 
|  | 34 | distribution of Linux. | 
|  | 35 | </para> | 
|  | 36 | </legalnotice> | 
|  | 37 | </bookinfo> | 
|  | 38 |  | 
|  | 39 | <toc></toc> | 
|  | 40 |  | 
|  | 41 | <chapter id="Basics"> | 
|  | 42 | <title>Driver Basics</title> | 
|  | 43 | <sect1><title>Driver Entry and Exit points</title> | 
|  | 44 | !Iinclude/linux/init.h | 
|  | 45 | </sect1> | 
|  | 46 |  | 
|  | 47 | <sect1><title>Atomic and pointer manipulation</title> | 
|  | 48 | !Iinclude/asm-i386/atomic.h | 
|  | 49 | !Iinclude/asm-i386/unaligned.h | 
|  | 50 | </sect1> | 
|  | 51 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | <sect1><title>Delaying, scheduling, and timer routines</title> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 53 | !Iinclude/linux/sched.h | 
|  | 54 | !Ekernel/sched.c | 
|  | 55 | !Ekernel/timer.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 56 | </sect1> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 57 | <sect1><title>Internal Functions</title> | 
|  | 58 | !Ikernel/exit.c | 
|  | 59 | !Ikernel/signal.c | 
|  | 60 | </sect1> | 
|  | 61 |  | 
|  | 62 | <sect1><title>Kernel objects manipulation</title> | 
|  | 63 | <!-- | 
|  | 64 | X!Iinclude/linux/kobject.h | 
|  | 65 | --> | 
|  | 66 | !Elib/kobject.c | 
|  | 67 | </sect1> | 
|  | 68 |  | 
|  | 69 | <sect1><title>Kernel utility functions</title> | 
|  | 70 | !Iinclude/linux/kernel.h | 
|  | 71 | <!-- This needs to clean up to make kernel-doc happy | 
|  | 72 | X!Ekernel/printk.c | 
|  | 73 | --> | 
|  | 74 | !Ekernel/panic.c | 
|  | 75 | !Ekernel/sys.c | 
|  | 76 | !Ekernel/rcupdate.c | 
|  | 77 | </sect1> | 
|  | 78 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 79 | </chapter> | 
|  | 80 |  | 
|  | 81 | <chapter id="adt"> | 
|  | 82 | <title>Data Types</title> | 
|  | 83 | <sect1><title>Doubly Linked Lists</title> | 
|  | 84 | !Iinclude/linux/list.h | 
|  | 85 | </sect1> | 
|  | 86 | </chapter> | 
|  | 87 |  | 
|  | 88 | <chapter id="libc"> | 
|  | 89 | <title>Basic C Library Functions</title> | 
|  | 90 |  | 
|  | 91 | <para> | 
|  | 92 | When writing drivers, you cannot in general use routines which are | 
|  | 93 | from the C Library.  Some of the functions have been found generally | 
|  | 94 | useful and they are listed below.  The behaviour of these functions | 
|  | 95 | may vary slightly from those defined by ANSI, and these deviations | 
|  | 96 | are noted in the text. | 
|  | 97 | </para> | 
|  | 98 |  | 
|  | 99 | <sect1><title>String Conversions</title> | 
|  | 100 | !Ilib/vsprintf.c | 
|  | 101 | !Elib/vsprintf.c | 
|  | 102 | </sect1> | 
|  | 103 | <sect1><title>String Manipulation</title> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 104 | <!-- All functions are exported at now | 
|  | 105 | X!Ilib/string.c | 
|  | 106 | --> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 107 | !Elib/string.c | 
|  | 108 | </sect1> | 
|  | 109 | <sect1><title>Bit Operations</title> | 
|  | 110 | !Iinclude/asm-i386/bitops.h | 
|  | 111 | </sect1> | 
|  | 112 | </chapter> | 
|  | 113 |  | 
|  | 114 | <chapter id="mm"> | 
|  | 115 | <title>Memory Management in Linux</title> | 
|  | 116 | <sect1><title>The Slab Cache</title> | 
|  | 117 | !Emm/slab.c | 
|  | 118 | </sect1> | 
|  | 119 | <sect1><title>User Space Memory Access</title> | 
|  | 120 | !Iinclude/asm-i386/uaccess.h | 
| Randy Dunlap | 8f2709b | 2005-11-07 01:01:05 -0800 | [diff] [blame] | 121 | !Earch/i386/lib/usercopy.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 122 | </sect1> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 123 | <sect1><title>More Memory Management Functions</title> | 
|  | 124 | !Iinclude/linux/rmap.h | 
|  | 125 | !Emm/readahead.c | 
|  | 126 | !Emm/filemap.c | 
|  | 127 | !Emm/memory.c | 
|  | 128 | !Emm/vmalloc.c | 
|  | 129 | !Emm/mempool.c | 
|  | 130 | !Emm/page-writeback.c | 
|  | 131 | !Emm/truncate.c | 
|  | 132 | </sect1> | 
|  | 133 | </chapter> | 
|  | 134 |  | 
|  | 135 |  | 
|  | 136 | <chapter id="ipc"> | 
|  | 137 | <title>Kernel IPC facilities</title> | 
|  | 138 |  | 
|  | 139 | <sect1><title>IPC utilities</title> | 
|  | 140 | !Iipc/util.c | 
|  | 141 | </sect1> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 142 | </chapter> | 
|  | 143 |  | 
|  | 144 | <chapter id="kfifo"> | 
|  | 145 | <title>FIFO Buffer</title> | 
|  | 146 | <sect1><title>kfifo interface</title> | 
|  | 147 | !Iinclude/linux/kfifo.h | 
|  | 148 | !Ekernel/kfifo.c | 
|  | 149 | </sect1> | 
|  | 150 | </chapter> | 
|  | 151 |  | 
|  | 152 | <chapter id="proc"> | 
|  | 153 | <title>The proc filesystem</title> | 
|  | 154 |  | 
|  | 155 | <sect1><title>sysctl interface</title> | 
|  | 156 | !Ekernel/sysctl.c | 
|  | 157 | </sect1> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 158 |  | 
|  | 159 | <sect1><title>proc filesystem interface</title> | 
|  | 160 | !Ifs/proc/base.c | 
|  | 161 | </sect1> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 162 | </chapter> | 
|  | 163 |  | 
|  | 164 | <chapter id="debugfs"> | 
|  | 165 | <title>The debugfs filesystem</title> | 
|  | 166 |  | 
|  | 167 | <sect1><title>debugfs interface</title> | 
|  | 168 | !Efs/debugfs/inode.c | 
|  | 169 | !Efs/debugfs/file.c | 
|  | 170 | </sect1> | 
|  | 171 | </chapter> | 
|  | 172 |  | 
|  | 173 | <chapter id="vfs"> | 
|  | 174 | <title>The Linux VFS</title> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 175 | <sect1><title>The Filesystem types</title> | 
|  | 176 | !Iinclude/linux/fs.h | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 177 | </sect1> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 178 | <sect1><title>The Directory Cache</title> | 
|  | 179 | !Efs/dcache.c | 
|  | 180 | !Iinclude/linux/dcache.h | 
|  | 181 | </sect1> | 
|  | 182 | <sect1><title>Inode Handling</title> | 
|  | 183 | !Efs/inode.c | 
|  | 184 | !Efs/bad_inode.c | 
|  | 185 | </sect1> | 
|  | 186 | <sect1><title>Registration and Superblocks</title> | 
|  | 187 | !Efs/super.c | 
|  | 188 | </sect1> | 
|  | 189 | <sect1><title>File Locks</title> | 
|  | 190 | !Efs/locks.c | 
|  | 191 | !Ifs/locks.c | 
|  | 192 | </sect1> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 193 | <sect1><title>Other Functions</title> | 
|  | 194 | !Efs/mpage.c | 
|  | 195 | !Efs/namei.c | 
|  | 196 | !Efs/buffer.c | 
|  | 197 | !Efs/bio.c | 
|  | 198 | !Efs/seq_file.c | 
|  | 199 | !Efs/filesystems.c | 
|  | 200 | !Efs/fs-writeback.c | 
|  | 201 | !Efs/block_dev.c | 
|  | 202 | </sect1> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 203 | </chapter> | 
|  | 204 |  | 
|  | 205 | <chapter id="netcore"> | 
|  | 206 | <title>Linux Networking</title> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 207 | <sect1><title>Networking Base Types</title> | 
|  | 208 | !Iinclude/linux/net.h | 
|  | 209 | </sect1> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 210 | <sect1><title>Socket Buffer Functions</title> | 
|  | 211 | !Iinclude/linux/skbuff.h | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 212 | !Iinclude/net/sock.h | 
|  | 213 | !Enet/socket.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 214 | !Enet/core/skbuff.c | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 215 | !Enet/core/sock.c | 
|  | 216 | !Enet/core/datagram.c | 
|  | 217 | !Enet/core/stream.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 218 | </sect1> | 
|  | 219 | <sect1><title>Socket Filter</title> | 
|  | 220 | !Enet/core/filter.c | 
|  | 221 | </sect1> | 
|  | 222 | <sect1><title>Generic Network Statistics</title> | 
|  | 223 | !Iinclude/linux/gen_stats.h | 
|  | 224 | !Enet/core/gen_stats.c | 
|  | 225 | !Enet/core/gen_estimator.c | 
|  | 226 | </sect1> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 227 | <sect1><title>SUN RPC subsystem</title> | 
|  | 228 | <!-- The !D functionality is not perfect, garbage has to be protected by comments | 
|  | 229 | !Dnet/sunrpc/sunrpc_syms.c | 
|  | 230 | --> | 
|  | 231 | !Enet/sunrpc/xdr.c | 
|  | 232 | !Enet/sunrpc/svcsock.c | 
|  | 233 | !Enet/sunrpc/sched.c | 
|  | 234 | </sect1> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 235 | </chapter> | 
|  | 236 |  | 
|  | 237 | <chapter id="netdev"> | 
|  | 238 | <title>Network device support</title> | 
|  | 239 | <sect1><title>Driver Support</title> | 
|  | 240 | !Enet/core/dev.c | 
| Stephen Hemminger | c2da8ac | 2005-11-01 17:05:09 -0800 | [diff] [blame] | 241 | !Enet/ethernet/eth.c | 
|  | 242 | !Einclude/linux/etherdevice.h | 
|  | 243 | !Enet/core/wireless.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 244 | </sect1> | 
|  | 245 | <sect1><title>Synchronous PPP</title> | 
|  | 246 | !Edrivers/net/wan/syncppp.c | 
|  | 247 | </sect1> | 
|  | 248 | </chapter> | 
|  | 249 |  | 
|  | 250 | <chapter id="modload"> | 
|  | 251 | <title>Module Support</title> | 
|  | 252 | <sect1><title>Module Loading</title> | 
|  | 253 | !Ekernel/kmod.c | 
|  | 254 | </sect1> | 
|  | 255 | <sect1><title>Inter Module support</title> | 
|  | 256 | <para> | 
|  | 257 | Refer to the file kernel/module.c for more information. | 
|  | 258 | </para> | 
|  | 259 | <!-- FIXME: Removed for now since no structured comments in source | 
|  | 260 | X!Ekernel/module.c | 
|  | 261 | --> | 
|  | 262 | </sect1> | 
|  | 263 | </chapter> | 
|  | 264 |  | 
|  | 265 | <chapter id="hardware"> | 
|  | 266 | <title>Hardware Interfaces</title> | 
|  | 267 | <sect1><title>Interrupt Handling</title> | 
| Randy Dunlap | 8f2709b | 2005-11-07 01:01:05 -0800 | [diff] [blame] | 268 | !Ekernel/irq/manage.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 269 | </sect1> | 
|  | 270 |  | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 271 | <sect1><title>Resources Management</title> | 
|  | 272 | !Ekernel/resource.c | 
|  | 273 | </sect1> | 
|  | 274 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 275 | <sect1><title>MTRR Handling</title> | 
|  | 276 | !Earch/i386/kernel/cpu/mtrr/main.c | 
|  | 277 | </sect1> | 
|  | 278 | <sect1><title>PCI Support Library</title> | 
|  | 279 | !Edrivers/pci/pci.c | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 280 | !Edrivers/pci/pci-driver.c | 
|  | 281 | !Edrivers/pci/remove.c | 
|  | 282 | !Edrivers/pci/pci-acpi.c | 
|  | 283 | <!-- kerneldoc does not understand to __devinit | 
|  | 284 | X!Edrivers/pci/search.c | 
|  | 285 | --> | 
|  | 286 | !Edrivers/pci/msi.c | 
|  | 287 | !Edrivers/pci/bus.c | 
| Randy Dunlap | f05aab8 | 2005-10-23 11:58:19 -0700 | [diff] [blame] | 288 | <!-- FIXME: Removed for now since no structured comments in source | 
|  | 289 | X!Edrivers/pci/hotplug.c | 
|  | 290 | --> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 291 | !Edrivers/pci/probe.c | 
|  | 292 | !Edrivers/pci/rom.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 293 | </sect1> | 
|  | 294 | <sect1><title>PCI Hotplug Support Library</title> | 
|  | 295 | !Edrivers/pci/hotplug/pci_hotplug_core.c | 
|  | 296 | </sect1> | 
|  | 297 | <sect1><title>MCA Architecture</title> | 
|  | 298 | <sect2><title>MCA Device Functions</title> | 
|  | 299 | <para> | 
|  | 300 | Refer to the file arch/i386/kernel/mca.c for more information. | 
|  | 301 | </para> | 
|  | 302 | <!-- FIXME: Removed for now since no structured comments in source | 
|  | 303 | X!Earch/i386/kernel/mca.c | 
|  | 304 | --> | 
|  | 305 | </sect2> | 
|  | 306 | <sect2><title>MCA Bus DMA</title> | 
|  | 307 | !Iinclude/asm-i386/mca_dma.h | 
|  | 308 | </sect2> | 
|  | 309 | </sect1> | 
|  | 310 | </chapter> | 
|  | 311 |  | 
|  | 312 | <chapter id="devfs"> | 
|  | 313 | <title>The Device File System</title> | 
|  | 314 | !Efs/devfs/base.c | 
|  | 315 | </chapter> | 
|  | 316 |  | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 317 | <chapter id="sysfs"> | 
|  | 318 | <title>The Filesystem for Exporting Kernel Objects</title> | 
|  | 319 | !Efs/sysfs/file.c | 
|  | 320 | !Efs/sysfs/dir.c | 
|  | 321 | !Efs/sysfs/symlink.c | 
|  | 322 | !Efs/sysfs/bin.c | 
|  | 323 | </chapter> | 
|  | 324 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 325 | <chapter id="security"> | 
|  | 326 | <title>Security Framework</title> | 
|  | 327 | !Esecurity/security.c | 
|  | 328 | </chapter> | 
|  | 329 |  | 
|  | 330 | <chapter id="pmfuncs"> | 
|  | 331 | <title>Power Management</title> | 
|  | 332 | !Ekernel/power/pm.c | 
|  | 333 | </chapter> | 
|  | 334 |  | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 335 | <chapter id="devdrivers"> | 
|  | 336 | <title>Device drivers infrastructure</title> | 
|  | 337 | <sect1><title>Device Drivers Base</title> | 
|  | 338 | <!-- | 
|  | 339 | X!Iinclude/linux/device.h | 
|  | 340 | --> | 
|  | 341 | !Edrivers/base/driver.c | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 342 | !Edrivers/base/core.c | 
|  | 343 | !Edrivers/base/firmware_class.c | 
|  | 344 | !Edrivers/base/transport_class.c | 
|  | 345 | !Edrivers/base/dmapool.c | 
|  | 346 | <!-- Cannot be included, because | 
|  | 347 | attribute_container_add_class_device_adapter | 
|  | 348 | and attribute_container_classdev_to_container | 
|  | 349 | exceed allowed 44 characters maximum | 
|  | 350 | X!Edrivers/base/attribute_container.c | 
|  | 351 | --> | 
|  | 352 | !Edrivers/base/sys.c | 
|  | 353 | <!-- | 
|  | 354 | X!Edrivers/base/interface.c | 
|  | 355 | --> | 
|  | 356 | !Edrivers/base/platform.c | 
|  | 357 | !Edrivers/base/bus.c | 
|  | 358 | </sect1> | 
|  | 359 | <sect1><title>Device Drivers Power Management</title> | 
|  | 360 | !Edrivers/base/power/main.c | 
|  | 361 | !Edrivers/base/power/resume.c | 
|  | 362 | !Edrivers/base/power/suspend.c | 
|  | 363 | </sect1> | 
|  | 364 | <sect1><title>Device Drivers ACPI Support</title> | 
|  | 365 | <!-- Internal functions only | 
|  | 366 | X!Edrivers/acpi/sleep/main.c | 
|  | 367 | X!Edrivers/acpi/sleep/wakeup.c | 
|  | 368 | X!Edrivers/acpi/motherboard.c | 
|  | 369 | X!Edrivers/acpi/bus.c | 
|  | 370 | --> | 
|  | 371 | !Edrivers/acpi/scan.c | 
|  | 372 | <!-- No correct structured comments | 
|  | 373 | X!Edrivers/acpi/pci_bind.c | 
|  | 374 | --> | 
|  | 375 | </sect1> | 
|  | 376 | <sect1><title>Device drivers PnP support</title> | 
|  | 377 | !Edrivers/pnp/core.c | 
|  | 378 | <!-- No correct structured comments | 
|  | 379 | X!Edrivers/pnp/system.c | 
|  | 380 | --> | 
|  | 381 | !Edrivers/pnp/card.c | 
|  | 382 | !Edrivers/pnp/driver.c | 
|  | 383 | !Edrivers/pnp/manager.c | 
|  | 384 | !Edrivers/pnp/support.c | 
|  | 385 | </sect1> | 
|  | 386 | </chapter> | 
|  | 387 |  | 
|  | 388 |  | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 389 | <chapter id="blkdev"> | 
|  | 390 | <title>Block Devices</title> | 
|  | 391 | !Edrivers/block/ll_rw_blk.c | 
|  | 392 | </chapter> | 
|  | 393 |  | 
|  | 394 | <chapter id="miscdev"> | 
|  | 395 | <title>Miscellaneous Devices</title> | 
|  | 396 | !Edrivers/char/misc.c | 
|  | 397 | </chapter> | 
|  | 398 |  | 
|  | 399 | <chapter id="viddev"> | 
|  | 400 | <title>Video4Linux</title> | 
|  | 401 | !Edrivers/media/video/videodev.c | 
|  | 402 | </chapter> | 
|  | 403 |  | 
|  | 404 | <chapter id="snddev"> | 
|  | 405 | <title>Sound Devices</title> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 406 | !Iinclude/sound/core.h | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 407 | !Esound/sound_core.c | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 408 | !Iinclude/sound/pcm.h | 
|  | 409 | !Esound/core/pcm.c | 
|  | 410 | !Esound/core/device.c | 
|  | 411 | !Esound/core/info.c | 
|  | 412 | !Esound/core/rawmidi.c | 
|  | 413 | !Esound/core/sound.c | 
|  | 414 | !Esound/core/memory.c | 
|  | 415 | !Esound/core/pcm_memory.c | 
|  | 416 | !Esound/core/init.c | 
|  | 417 | !Esound/core/isadma.c | 
|  | 418 | !Esound/core/control.c | 
|  | 419 | !Esound/core/pcm_lib.c | 
|  | 420 | !Esound/core/hwdep.c | 
|  | 421 | !Esound/core/pcm_native.c | 
|  | 422 | !Esound/core/memalloc.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 423 | <!-- FIXME: Removed for now since no structured comments in source | 
|  | 424 | X!Isound/sound_firmware.c | 
|  | 425 | --> | 
|  | 426 | </chapter> | 
|  | 427 |  | 
|  | 428 | <chapter id="uart16x50"> | 
|  | 429 | <title>16x50 UART Driver</title> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 430 | !Iinclude/linux/serial_core.h | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 431 | !Edrivers/serial/serial_core.c | 
|  | 432 | !Edrivers/serial/8250.c | 
|  | 433 | </chapter> | 
|  | 434 |  | 
|  | 435 | <chapter id="z85230"> | 
|  | 436 | <title>Z85230 Support Library</title> | 
|  | 437 | !Edrivers/net/wan/z85230.c | 
|  | 438 | </chapter> | 
|  | 439 |  | 
|  | 440 | <chapter id="fbdev"> | 
|  | 441 | <title>Frame Buffer Library</title> | 
|  | 442 |  | 
|  | 443 | <para> | 
|  | 444 | The frame buffer drivers depend heavily on four data structures. | 
|  | 445 | These structures are declared in include/linux/fb.h.  They are | 
|  | 446 | fb_info, fb_var_screeninfo, fb_fix_screeninfo and fb_monospecs. | 
|  | 447 | The last three can be made available to and from userland. | 
|  | 448 | </para> | 
|  | 449 |  | 
|  | 450 | <para> | 
|  | 451 | fb_info defines the current state of a particular video card. | 
|  | 452 | Inside fb_info, there exists a fb_ops structure which is a | 
|  | 453 | collection of needed functions to make fbdev and fbcon work. | 
|  | 454 | fb_info is only visible to the kernel. | 
|  | 455 | </para> | 
|  | 456 |  | 
|  | 457 | <para> | 
|  | 458 | fb_var_screeninfo is used to describe the features of a video card | 
|  | 459 | that are user defined.  With fb_var_screeninfo, things such as | 
|  | 460 | depth and the resolution may be defined. | 
|  | 461 | </para> | 
|  | 462 |  | 
|  | 463 | <para> | 
|  | 464 | The next structure is fb_fix_screeninfo. This defines the | 
|  | 465 | properties of a card that are created when a mode is set and can't | 
|  | 466 | be changed otherwise.  A good example of this is the start of the | 
|  | 467 | frame buffer memory.  This "locks" the address of the frame buffer | 
|  | 468 | memory, so that it cannot be changed or moved. | 
|  | 469 | </para> | 
|  | 470 |  | 
|  | 471 | <para> | 
|  | 472 | The last structure is fb_monospecs. In the old API, there was | 
|  | 473 | little importance for fb_monospecs. This allowed for forbidden things | 
|  | 474 | such as setting a mode of 800x600 on a fix frequency monitor. With | 
|  | 475 | the new API, fb_monospecs prevents such things, and if used | 
|  | 476 | correctly, can prevent a monitor from being cooked.  fb_monospecs | 
|  | 477 | will not be useful until kernels 2.5.x. | 
|  | 478 | </para> | 
|  | 479 |  | 
|  | 480 | <sect1><title>Frame Buffer Memory</title> | 
|  | 481 | !Edrivers/video/fbmem.c | 
|  | 482 | </sect1> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 483 | <!-- | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 484 | <sect1><title>Frame Buffer Console</title> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 485 | X!Edrivers/video/console/fbcon.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 486 | </sect1> | 
| Pavel Pisa | 4dc3b16 | 2005-05-01 08:59:25 -0700 | [diff] [blame] | 487 | --> | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 488 | <sect1><title>Frame Buffer Colormap</title> | 
|  | 489 | !Edrivers/video/fbcmap.c | 
|  | 490 | </sect1> | 
|  | 491 | <!-- FIXME: | 
|  | 492 | drivers/video/fbgen.c has no docs, which stuffs up the sgml.  Comment | 
|  | 493 | out until somebody adds docs.  KAO | 
|  | 494 | <sect1><title>Frame Buffer Generic Functions</title> | 
|  | 495 | X!Idrivers/video/fbgen.c | 
|  | 496 | </sect1> | 
|  | 497 | KAO --> | 
|  | 498 | <sect1><title>Frame Buffer Video Mode Database</title> | 
|  | 499 | !Idrivers/video/modedb.c | 
|  | 500 | !Edrivers/video/modedb.c | 
|  | 501 | </sect1> | 
|  | 502 | <sect1><title>Frame Buffer Macintosh Video Mode Database</title> | 
| Randy Dunlap | 8f2709b | 2005-11-07 01:01:05 -0800 | [diff] [blame] | 503 | !Edrivers/video/macmodes.c | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 504 | </sect1> | 
|  | 505 | <sect1><title>Frame Buffer Fonts</title> | 
|  | 506 | <para> | 
|  | 507 | Refer to the file drivers/video/console/fonts.c for more information. | 
|  | 508 | </para> | 
|  | 509 | <!-- FIXME: Removed for now since no structured comments in source | 
|  | 510 | X!Idrivers/video/console/fonts.c | 
|  | 511 | --> | 
|  | 512 | </sect1> | 
|  | 513 | </chapter> | 
|  | 514 | </book> |