* A system call in the kernel
@ 2001-06-28 17:14 Michael J Clark
2001-06-28 17:28 ` Richard B. Johnson
2001-06-28 17:53 ` Brian Gerst
0 siblings, 2 replies; 3+ messages in thread
From: Michael J Clark @ 2001-06-28 17:14 UTC (permalink / raw)
To: linux-kernel
Any ideas on hot to easily call an outside program from the kernel (like
system(), exec()....) Is this possible? Thanks
Mike
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: A system call in the kernel
2001-06-28 17:14 A system call in the kernel Michael J Clark
@ 2001-06-28 17:28 ` Richard B. Johnson
2001-06-28 17:53 ` Brian Gerst
1 sibling, 0 replies; 3+ messages in thread
From: Richard B. Johnson @ 2001-06-28 17:28 UTC (permalink / raw)
To: Michael J Clark; +Cc: linux-kernel
On Thu, 28 Jun 2001, Michael J Clark wrote:
> Any ideas on hot to easily call an outside program from the kernel (like
> system(), exec()....) Is this possible? Thanks
>
> Mike
> -
Look through the drivers and check upon "kernel_thread()". This shares
the process context of 'init' so you can do a lot of "user-mode" things
in the kernel. But.... beware.... User mode stuff should be done in
user-mode, not in the kernel.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.1 on an i686 machine (799.53 BogoMips).
I was going to compile a list of innovations that could be
attributed to Microsoft. Once I realized that Ctrl-Alt-Del
was handled in the BIOS, I found that there aren't any.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: A system call in the kernel
2001-06-28 17:14 A system call in the kernel Michael J Clark
2001-06-28 17:28 ` Richard B. Johnson
@ 2001-06-28 17:53 ` Brian Gerst
1 sibling, 0 replies; 3+ messages in thread
From: Brian Gerst @ 2001-06-28 17:53 UTC (permalink / raw)
To: Michael J Clark; +Cc: linux-kernel
Michael J Clark wrote:
>
> Any ideas on hot to easily call an outside program from the kernel (like
> system(), exec()....) Is this possible? Thanks
Check exec_usermodehelper in kmod.c
--
Brian Gerst
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-06-28 17:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28 17:14 A system call in the kernel Michael J Clark
2001-06-28 17:28 ` Richard B. Johnson
2001-06-28 17:53 ` Brian Gerst
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox