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.org

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 Hardware Reviews
  1. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. Intel P-State vs. CPUFreq Benchmarks On The i7-5960X
  2. RadeonSI GLAMOR Benchmarks With X.Org Server 1.16
  3. RadeonSI Gallium3D vs. Catalyst At 4K UHD On Linux
  4. MSAA RadeonSI Gallium3D Performance Preview
Latest Linux News
  1. Geometry Shaders, OpenGL 3.2 Land In Mesa For Intel Sandy Bridge
  2. Wayland & Weston 1.6 Released
  3. Tizen Smartphones Reported To Launch In November
  4. NVIDIA Releases The 343.22 Linux Driver With GTX 980 Support
  5. NVIDIA Launches The GTX 980: The High-End Maxwell Beauty
  6. X.Org Server Shatter Project Fails
  7. X.Org Women Outreach Program Only Turns Up Two Applicants So Far
  8. Fedora 21 Alpha Finally Coming Next Week
  9. Ubuntu Touch/Phone Reaches Its First RTM Image
  10. The KMS Mode-Setting Driver Was Imported For X.Org Server 1.17
Latest Forum Discussions
  1. Can Linux kill a motherboard?
  2. Stop grabbing my keyboard :(
  3. New Group Calls For Boycotting Systemd
  4. Updated and Optimized Ubuntu Free Graphics Drivers
  5. Best Radeon for a Power Mac G5?
  6. New stress testing utility for GPU's
  7. Hd 6850
  8. support for first generation UVD blocks (RV6xx, RS780, RS880 and RV790)