The driver that you've sent looks pretty much like that from Alessandro Rubini & Jonathan Corbet. I'd bet my left eye it was named 'short.c', some time ago.
Hmmm this raises the question .... If we learn something from a book and use the techniques (ofcourse its gonna resemble the book ) then should we have to copyright it to the author?
1) Please look at the "sysdep.h" from the ldd sources ;)
2) I've read the preamble in your module, it raise another question:
"If we learn something from a book and use the techniques, then should we read
a religious opinion too? "
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/