Re: executing a user space function in kernel module

From: Tigran Aivazian (tigran@veritas.com)
Date: Wed Oct 11 2000 - 07:15:25 EST


On Wed, 11 Oct 2000 mdaljeet@in.ibm.com wrote:
> In Linux, is it possible to execute a function in kernel which is a part of
> user application
> and hence a part of user address space??

the canonical way of doing it is to compile that function into an
executable ELF file and then use standard Linux kernel API
exec_usermodehelper() (see kernel/kmod.c) in a separate kernel thread like
request_module() does.

Regards,
Tigran

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



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:17 EST