Re: Inserting code from userspace to kernel space

From: Geert Uytterhoeven
Date: Mon May 26 2008 - 02:48:23 EST


On Thu, 22 May 2008, Bosko Radivojevic wrote:
> For now we have two different kernel modules, one exporting a function
> which another module uses. Process of compiling kernel module is quite
> ineligible for standard end user (along with the requirement to
> support multi platform cross compiling) compared to just cross
> compiling a simple code that doesn't use any libraries than libc.

For cross-compiling a kernel module, you need:
- a cross-compiler

For cross-compiling `a simple code that doesn't use any libraries than
libc', you need:
- a cross-compiler
- a cross-libc

Hence the kernel module approach needs less ;-)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/