Re: How to run an a.out file in a kernel module

From: Jiri Slaby
Date: Fri Oct 27 2006 - 07:07:52 EST


ranjith kumar wrote:
> Hi,
>
> How to run an a.out file in a kernel module
> I tried to include
> system("./a.out");
> in the C file. But I got compilation errors.

And what exactly do you want kernel to do?
If you want to create a process, see module loading procedure from kernel (i.e.
calling modprobe) -- request_module function or calling 'init=' program --
run_init_process.

regards,
--
http://www.fi.muni.cz/~xslaby/ Jiri Slaby
faculty of informatics, masaryk university, brno, cz
e-mail: jirislaby gmail com, gpg pubkey fingerprint:
B674 9967 0407 CE62 ACC8 22A0 32CC 55C3 39D4 7A7E
-
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/