1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking Benchmarking Platform
Phoromatic Test Orchestration

A Template For Writing Linux Kernel Drivers

Linux Kernel

Published on 13 November 2012 02:17 PM EST
Written by Michael Larabel in Linux Kernel
2 Comments

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.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux News
  1. Linux Mint 17.2 Officially Released With Cinnamon/MATE Flavors
  2. Fedora For MIPS Is Now Out In Testing, Supports The Creator CI20
  3. KDE Plasma 5.3.2 Fixes Shutdown Scripts, Few Dozen Other Bugs
  4. KDE Marks Four Years In Its Process Of Porting To Wayland
  5. Btrfs In Linux 4.2 Brings Quota Updates, Many Fixes
  6. Latest Rumor Pegs Microsoft Wanting To Buy AMD
  7. The Next-Gen Phoronix Site Experience Is Almost Ready
  8. Exciting Features Merged So Far For The Linux 4.2 Kernel
  9. Mesa 10.6.1 Brings A Bug-Fix For Dota 2 Reborn
  10. DragonFlyBSD 4.2 Released: Brings Improved Graphics & New Compiler
Latest Articles & Reviews
  1. How KDE VDG Is Trying To Make Open-Source Software Beautiful
  2. Attempting To Try Out BCache On The Linux 4.1 Kernel
  3. CompuLab's Fitlet Is A Very Tiny, Fanless, Linux PC With AMD A10 Micro
  4. AMD A10-7870K Godavari: RadeonSI Gallium3D vs. Catalyst Linux Drivers
Most Viewed News This Week
  1. Kubuntu 15.10 Could Be The End Of The Road
  2. Linus Is Looking Forward To Merging KDBUS, But Not Convinced By Performance
  3. NVIDIA Starts Supplying Open-Source Hardware Reference Headers
  4. KDBUS Won't Be Pushed Until The Linux 4.3 Kernel
  5. Linux 4.2 Kernel Gets Port To New Processor Architecture
  6. The Staging Pull For Linux 4.2: "Big, Really Big"
  7. SteamOS "Brewmaster" Is Valve's New Debian 8.1 Based Version
  8. Jonathan Riddell Steps Down From The Kubuntu Council