Linux Driver Template
Switch branches/tags
Nothing to show
Pull request Compare This branch is 24 commits behind makelinux:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README.md
ctracer.h
dio.c
ldt-test
ldt.c
ldt_configfs_basic.c
ldt_plat_dev.c
ldt_plat_drv.c
tracing.h

README.md

LDT - Linux Driver Template

LDT project is useful for Linux driver development beginners and as starting point for a new drivers. The driver uses following Linux facilities: module, platform driver, file operations (read/write, mmap, ioctl, blocking and nonblocking mode, polling), kfifo, completion, interrupt, tasklet, work, kthread, timer, simple misc device, multiple char devices, Device Model, proc fs, configfs, UART 0x3f8, HW loopback, SW loopback, ftracer.

Usage:

Just run

git clone git://github.com/makelinux/ldt.git && cd ldt && ./ldt-test

and explore sources.

Files:

Main source file of LDT: ldt.c

Test script, run it: ldt-test

Generic testing utility for Device I/O: dio.c

Browse the rest of source: https://github.com/makelinux/ldt/

Compiled and tested on Linux versions:

v3.6-rc5

3.2.0-30-generic-pae (Ubuntu 12.04 LTS)

2.6.38-11-generic (Ubuntu 11.04)

v2.6.37-rc8

v2.6.36-rc8

Failed compilation with:

v2.6.35-rc6 failed because of DEFINE_FIFO