home | list info | list archive | date index | thread index

[OCLUG-Tech] looking for a gazillion sample modules/drivers/kernel code

  • Subject: [OCLUG-Tech] looking for a gazillion sample modules/drivers/kernel code
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Fri, 26 Apr 2013 13:23:00 -0400 (EDT)
  for the purpose of demos in future kernel programming/device driver
courses, i'm trying to collect minimal examples of different features
of kernel programming and drivers. the keyword is "minimal" -- i want
each example to demonstrate a single feature under discussion. in many
cases, sample programs i've found try to explain about 8 different
things at once and collapse under the weight of their own complexity.

  here's an example so you know what i mean -- i want an example that
shows how to program a simple netlink socket, which involves
communicating user and kernel space programs. didn't take long to find
this:

http://stackoverflow.com/questions/3299386/how-to-use-netlink-socket-to-communicate-with-a-kernel-module

  i haven't had a chance to test it yet, but in other places, i've had
people adamant that that example works fine for 2.6.x kernels, but not
3.x, so there's the added wrinkle that lots of alleged sample programs
out there haven't been updated for 3.x.

  anyway, that's what i'm after, and all examples will be posted
online somewhere on my web site, publicly available. so if you have
examples or know of existing ones, let me know. thanks.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================