lkml.org 
[lkml]   [2000]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [idea] request_module(const char *fmt, ...);
Date
From
Pauline Middelink wrote:
> On Tue, Jan 11, 2000 at 12:41:40PM +0000, Tigran Aivazian wrote:
> > I forgot to add it is clear that the compiler does *NOT* optimize the
> > chunk away even if request_module() is a nop, so there *is* some
> > optimization gained by my idea in comparison to simply dropping
> > #ifdef/#endif.
>
> You could refine this idea by making it a macro, which resolves
> into nothingness if CONFIG_KMOD is undefined. The function
> called in the macro (__request_module?) is also not compiled
> if CONFIG_KMOD is not set.
> (Yes, you can do varargs in a macro, use ...)

If you do it like this, Tigran's suggestion that the whole kernel
doesn't require recompilation on change of kmod setting is no longer
valid. (but I don't think that that's important!)

Roger.


--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
"I didn't say it was your fault. I said I was going to blame it on you."

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

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.240 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site