H340 LED Linux Driver

Well, I’ve been reading up and digging into the Linux kernel quite heavily recently. I’d like to get to the point where I can contribute to the Linux kernel and give back to the community that has given so much to me. I’m nowhere near this point just yet, but I’ve begun the journey. :) I took my old Acer Aspire H340 program to drive the LEDs and turned it into a simple kernel module as a baby step. The module creates a kernel thread (you know, those processes running on your Linux box with square brackets around them: [ksoftirqd/0] for example) that loops reading disk stats via part_read_stat and comparing the number of read/write IOs to the last iteration. If it’s greater, obviously there has been disk activity, so turn on the appropriate LED. Simple and the code is quite ugly, but it works and it’s my first one. :P

h340.git

Cheers!

  1. No comments yet.

  1. No trackbacks yet.

 
Ubiety v0.0.1
Chat ()