Skip to content
Linux Device Drivers 3 examples updated to work in recent kernels
Branch: master
Clone or download
eu1793 and martinezjavier Change in timer_list struct
Member data of timer struct (timer_list) is no longer available. Use timer_setup function to pass the parameter to the callback function
Latest commit bdf0647 Jun 14, 2018
Permalink
Type Name Latest commit message Commit time
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: faulty: Open code memset() to allow a buffer overflow Feb 25, 2018
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 Don't use absolute path for commands in load/unload scripts Feb 25, 2018
scull scull: Include <linux/sched/signal.h> for struct signal_struct Feb 25, 2018
scullc scullc: Include <linux/uaccess.h> header for copy_*_user() Feb 25, 2018
sculld sculld: Include <linux/uaccess.h> header for copy_*_user() Feb 25, 2018
scullp scullp: Include <linux/uaccess.h> header for copy_*_user() Feb 25, 2018
scullv scullv: Include <linux/uaccess.h> header for copy_*_user() Feb 25, 2018
short short: Don't use deprecated IRQF_DISABLED flag when requesting a IRQ Feb 25, 2018
shortprint Don't use absolute path for commands in load/unload scripts Feb 25, 2018
simple Don't use absolute path for commands in load/unload scripts Feb 25, 2018
skull Linux Device Drivers 3 examples Nov 27, 2010
snull Don't use absolute path for commands in load/unload scripts Feb 25, 2018
tty Change in timer_list struct Jun 20, 2018
usb Update function usb_bulk_msg Jun 20, 2018
.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
You can’t perform that action at this time.