A Template For Writing Linux Kernel Drivers

Written by Michael Larabel in Linux Kernel on 13 November 2012 at 02:17 PM EST. 2 Comments
LINUX KERNEL
LDT has been published, a Linux Driver Template for helping new Linux kernel developers begin writing hardware device drivers.

Constantine Shulyupin posted the Linux Driver Template (LDT) for merging into the mainline Linux kernel and it can be used as a starting point for new drivers. The basic driver demonstrates file operations including mmap and ioctl and blocking modes and polling, KFIFO, completion, interrupts, Tasklets, work, kthreads, timer, simple misc devices, multiple char devices, Device Model, configfs, UART, hardware loopback, software loopback, and ftracer. There's also an accompanying user-mode test script and utility.

Those wanting to look at this simple Linux device driver sample code can find it currently on the Linux mailing list. There's also other Linux kernel samples on eLinux.org for device drivers.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week