Skip to content
Linux Device Drivers 3 examples updated to work in recent kernels
C Shell
Find file
Latest commit 7a41714 Dec 23, 2013 @martinezjavier Merge pull request #7 from ttousai/master
Fixed failure to load scull module and description typo in scull.init.
Failed to load latest commit information.
include Linux Device Drivers 3 examples Nov 27, 2010
lddbus lddbus: add member init_name to ldd_bus device declaration Sep 28, 2013
misc-modules misc-modules: kdataalign: Removes obsolete <linux/config> header and … Nov 27, 2010
misc-progs misc-progs: outp: Use <sys/io.h> insted of <asm/io.h> Nov 27, 2010
pci pci: pci_skel: Remove <linux/config.h> Dec 5, 2010
sbull Fix a memory mapping bug in sbull.c Oct 29, 2013
scull Fixed failure to load scull module and description typo in scull.init. Dec 18, 2013
scullc scullc: main: Don't use create_proc_read_entry() Sep 28, 2013
sculld sculld: main: Don't use create_proc_read_entry() Sep 28, 2013
scullp scullp: main: Don't use create_proc_read_entry() Sep 28, 2013
scullv scullv: main: Don't use create_proc_read_entry() Sep 28, 2013
short short: Fix cast to meet workqueue handler signature Jan 8, 2011
shortprint shortprint: Change handler function argument according current worque… Jan 8, 2011
simple ldd3: get rid of deprecated VM_RESERVED vma flag Apr 26, 2013
skull Linux Device Drivers 3 examples Nov 27, 2010
snull snull: use NETIF_F_HW_CSUM instead of NETIF_F_NO_CSUM May 6, 2012
tty tty: update termios access due tty_struct changes Apr 27, 2013
usb usb: usb-skeleton: use dev_dbg() instead deprecated dbg() Apr 26, 2013
.gitignore Add a .gitignore Dec 17, 2012
LICENSE Linux Device Drivers 3 examples Nov 27, 2010
Makefile Linux Device Drivers 3 examples Nov 27, 2010
README README: update project goal according to reality Apr 27, 2013
README.Debian Proposial of README.Debian file that explains Debian users how to build Dec 7, 2013

README

ldd3: Linux Device Drivers 3 examples updated to work with recent kernels

About
-----

Linux Device Drivers 3 (http://lwn.net/Kernel/LDD3/) book is now a few years
old and most of the example drivers do not compile in recent kernels.

This project aims to keep LDD3 example drivers up-to-date with recent kernels.

The original code can be found at: http://examples.oreilly.com/9780596005900/

Compiling
----------

The example drivers should compile against latest Linus Torvalds kernel tree:
* git://git.kernel.org/pub/scm/linux/kernel/git/sfr/linux-next.git

To compile the drivers against a specific tree (for example Linus tree):

$ git clone git://github.com/martinezjavier/ldd3.git
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
$ export KERNELDIR=/path/to/linux
$ cd ldd3
$ make

Bugs, comments or patches: martinez.javier@gmail.com
Something went wrong with that request. Please try again.