Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Linux Device Drivers 3 examples updated to work in recent kernels

branch: master

Merge pull request #7 from ttousai/master

Fixed failure to load scull module and description typo in scull.init.
latest commit 7a41714d7d
Javier Martinez Canillas authored
Octocat-spinner-32 include Linux Device Drivers 3 examples November 27, 2010
Octocat-spinner-32 lddbus lddbus: add member init_name to ldd_bus device declaration September 28, 2013
Octocat-spinner-32 misc-modules misc-modules: kdataalign: Removes obsolete <linux/config> header and … November 27, 2010
Octocat-spinner-32 misc-progs misc-progs: outp: Use <sys/io.h> insted of <asm/io.h> November 27, 2010
Octocat-spinner-32 pci pci: pci_skel: Remove <linux/config.h> December 05, 2010
Octocat-spinner-32 sbull Fix a memory mapping bug in sbull.c October 29, 2013
Octocat-spinner-32 scull Fixed failure to load scull module and description typo in scull.init. December 18, 2013
Octocat-spinner-32 scullc scullc: main: Don't use create_proc_read_entry() September 28, 2013
Octocat-spinner-32 sculld sculld: main: Don't use create_proc_read_entry() September 28, 2013
Octocat-spinner-32 scullp scullp: main: Don't use create_proc_read_entry() September 28, 2013
Octocat-spinner-32 scullv scullv: main: Don't use create_proc_read_entry() September 28, 2013
Octocat-spinner-32 short short: Fix cast to meet workqueue handler signature January 08, 2011
Octocat-spinner-32 shortprint shortprint: Change handler function argument according current worque… January 08, 2011
Octocat-spinner-32 simple ldd3: get rid of deprecated VM_RESERVED vma flag April 26, 2013
Octocat-spinner-32 skull Linux Device Drivers 3 examples November 27, 2010
Octocat-spinner-32 snull snull: use NETIF_F_HW_CSUM instead of NETIF_F_NO_CSUM May 06, 2012
Octocat-spinner-32 tty tty: update termios access due tty_struct changes April 27, 2013
Octocat-spinner-32 usb usb: usb-skeleton: use dev_dbg() instead deprecated dbg() April 26, 2013
Octocat-spinner-32 .gitignore Add a .gitignore December 17, 2012
Octocat-spinner-32 LICENSE Linux Device Drivers 3 examples November 27, 2010
Octocat-spinner-32 Makefile Linux Device Drivers 3 examples November 27, 2010
Octocat-spinner-32 README README: update project goal according to reality April 27, 2013
Octocat-spinner-32 README.Debian Proposial of README.Debian file that explains Debian users how to build December 07, 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.