Re: spinlocks, the GPL, and binary-only modules

From: Jeremy Fitzhardinge (jeremy@goop.org)
Date: Wed Nov 20 2002 - 02:38:00 EST


On Tue, 2002-11-19 at 14:09, Jeff Garzik wrote:
> blah.
>
> So, since spinlocks and semaphores are (a) inline and #included into
> your code, and (b) required for just about sane interoperation with Linux...
>
> does this mean that all binary-only modules that #include kernel code
> such as spinlocks are violating the GPL? IOW just about every binary
> module out there, I would think...

There are a whole pile of rules and precedents over this. For one, a
certain code size limit applies, as does the notion of whether there's
any creative input (for example, constants and structure definitions are
not considered creative, because they are simply required for an
interface to work).

One argument is that since the interfaces require you to manipulate the
locks in a particular way, and only a given set of instructions will do
those manipulations correctly, then any correct implementation will
contain those instructions. Whether they get them from including a
particular header, or by having their own versions of those
instructions, it all looks the same in the binary. It would be hard
work to claim the presence of those instructions constitutes a derived
work, any more than you could claim the instructions which set the stack
or registers up for a function call constitute a derived work.

        J

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:31 EST