Linux Device Drivers 3 examples updated to work in recent kernels
C Shell Makefile
Latest commit 0bb6ad7 May 9, 2016 @mbgg mbgg Merge pull request #20 from coderkaka/master
Fix failure to compile the scull with kernel of version 4.6.0.
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: Check return value of pci_enable_device May 4, 2016
sbull Fix a memory mapping bug in sbull.c Oct 29, 2013
scull Fix failure to compile the scull. The return value of current_xid() h… May 3, 2016
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 replace kmalloc with kzalloc Dec 31, 2014
.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: Add newline on end of last line May 4, 2016
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