Skip to content

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
C Shell
branch: master

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
lddbus lddbus: add member init_name to ldd_bus device declaration
misc-modules misc-modules: kdataalign: Removes obsolete <linux/config> header and …
misc-progs misc-progs: outp: Use <sys/io.h> insted of <asm/io.h>
pci pci: pci_skel: Remove <linux/config.h>
sbull Fix a memory mapping bug in sbull.c
scull Fixed failure to load scull module and description typo in scull.init.
scullc scullc: main: Don't use create_proc_read_entry()
sculld sculld: main: Don't use create_proc_read_entry()
scullp scullp: main: Don't use create_proc_read_entry()
scullv scullv: main: Don't use create_proc_read_entry()
short short: Fix cast to meet workqueue handler signature
shortprint shortprint: Change handler function argument according current worque…
simple ldd3: get rid of deprecated VM_RESERVED vma flag
skull Linux Device Drivers 3 examples
snull snull: use NETIF_F_HW_CSUM instead of NETIF_F_NO_CSUM
tty tty: update termios access due tty_struct changes
usb usb: usb-skeleton: use dev_dbg() instead deprecated dbg()
.gitignore Add a .gitignore
LICENSE Linux Device Drivers 3 examples
Makefile Linux Device Drivers 3 examples
README README: update project goal according to reality
README.Debian Proposial of README.Debian file that explains Debian users how to build

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.