Thanks!
Kyle
> Why not just make all drivers use the GPL?
You answer you own question?
> For non-technical reasons, a GPL release may not be possible.
So, keep your driver away from the kernel. Use uio instead.
jbe
So is the answer to my first question "No"?
Looks like UIO can't use DMA operations, which are a must. I may go
down the path of trying to convince the necessary parties to allow use
of GPL dual licensing.
Thanks for the help.
AFAIK the whole Linux kernel is GPLv2 (see /usr/src/linux/COPYING), making it impossible to directly interface non-GPL code with the kernel. In short, I don't think you can write a non-GPL kernel-mode driver at all. class_create and device_create aren't special.
User-space programs can be non-GPL, which make it possible to write proprietary drivers with a thin kernel-mode GPL interface to non-GPL user-space code.
I'm not sure this doesn't qualify as "derived work", but that has been done by graphics hardware manufacturers.
> Does anyone know why these functions are specifically GPL protected?
Any kernel mode function is GPL protected.
> Why not just make all drivers use the GPL?
That's what Linus Torvalds and other kernel developers wished when GPL'ing the Linux kernel.
--
André Gillibert
That's not true. I can't redistribute my own copy of Linux that includes a
non-GPL driver, but I can certainly write a driver of my own, and I can
offer it for download by others.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.
That's not Linus Torvalds' opinion.
<http://lkml.indiana.edu/hypermail/linux/kernel/0312.0/0670.html>
Admittedly GPLv2 is unclear about what "derived work" means.
--
André Gillibert
Not the least. The usual idiot's workaround (sorry for the harsh word
but I am tired of rereading this unchanged for years) is to claim that
the runtime linker somehow wouldn't be linker because it is not
executed until ... runtime.
This is technically wrong and the issue has been discussed to death
for years. Publish your derived work. Wait for the copyright owners to
sue. Discover that you are less clever than you believed. Good luck.