now taking corrections for the Linux Kernel Module Programming Guide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  as of yesterday, i'm now a (the?) active maintainer of the 2.6
version of the Linux Kernel Module Programming Guide (henceforth
"LKMPG") that you can find here (along with the older 2.4 version):

  http://www.tldp.org/LDP/lkmpg/

  in addition to your basic aesthetic fixups, i'm already fixing
obvious breakage in some of the example modules that haven't kept up
with the 2.6 kernel.  for example, there's a sample module here:

  http://www.tldp.org/LDP/lkmpg/2.6/html/x1194.html

that (allegedly) causes your keyboard LEDs to blink upon module
insertion, until you remove said module.  that sample module code
does not currently build for a couple reasons:

1) it includes "linux/config.h" which doesn't even exist anymore,
and

2) it includes "linux/console_struct.h" directly and indirectly more
than once, which is a header file that is currently unprotected
against multiple inclusion which causes a build error.

  i've already submitted a short patch to LKML to fix
console_struct.h, and have submitted a patch to fix kbleds.c in the
LKMPG CVS tree.  those fixes are enough to get a functioning module.

  there are other sample modules that also don't work, such as:

  http://www.tldp.org/LDP/lkmpg/2.6/html/x1211.html

because the workqueue stuff has also changed.

  to make a long story short, if anyone wants to start reading that
guide and test the examples and e-mail me fixes, that would be great
since it would be nice not to have to do all that by myself.

  and you had nothing better to do anyway, right?  :)

rday

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux