Messages in this thread | | | From | Keith Owens <> | Subject | Re: [idea] request_module(const char *fmt, ...); | Date | Wed, 12 Jan 2000 11:42:58 +1100 |
| |
On Tue, 11 Jan 2000 12:39:02 +0000 (GMT), Tigran Aivazian <tigran@sco.COM> wrote: >have a request_module() function with printf()-like syntax inside >kmod.c: > >int request_module(const char *fmt, ...) >{ >#ifdef CONFIG_KMOD > va_list args; > .... >#else > return -1; >#endif >}
(1) Use a different name so existing modules that call the old request_module are not affected. It is legal to compile modules under one kernel then load them into newer kernels. This is not always safe but it is a supported option.
(2) Make the new name a macro which becomes a no-op when CONFIG_KMOD is not defined.
- 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/
| |