[lkml]   [2002]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Defining new section for bus driver init

On Tue, 15 Jan 2002, Dave Jones wrote:

> On Tue, Jan 15, 2002 at 09:53:27AM -0800, Patrick Mochel wrote:
> > > I like it. Are you going to want to move the other busses to this
> > > (sbus, mca, ecard, zorro, etc.)?
> > Yes, though I don't have a way to test them...
> Not a problem, I'm sure you'll find an army of testers on l-k.

Ok, as I'm converting the drivers, I find that some have the option of
modular compilation, like isapnp and irda. In theory, it seems that each
of the bus drivers could be compiled modular. But, how do you define it in
the section?

I was thinking something like this:

#ifdef MODULE
#define __devsubsys_init(fn) \
#define __devsubsys_init(fn) \
static initcall_t __devsubsys_##fn __devsubsys_call = fn;



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: 2005-03-22 13:23    [W:0.034 / U:2.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site