[lkml]   [2007]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Source organization for two drivers sharing coomon code
Jan Engelhardt wrote:
> On Jul 27 2007 10:17, Subbu Seetharaman wrote:
>>What is the recommended way for two drivers to share common code ?
>><snip>...The source code for these dirvers will fit under
>>drivers/net and drivers/scsi. But both drivers share some common

> You could create (in total) three modules, e.g. my-common.ko,
> my-net.ko and my-scsi.ko, of which the latter two use functions from the first.

Where would the common code live, in such a case? Would you just pick
one of the two locations at random, or put it in drivers/misc or maybe lib?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2007-07-27 21:15    [W:0.036 / U:3.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site