2010-01-12 16:19:51

by mojtaba

[permalink] [raw]
Subject: dlopen in kernel mode

[please cc [email protected]]
Dear all,

Are there any alternatives for dlopen(), dlsym() and dlclose() in
kernel mode? Basicly, I need to load an executable object file and
execute an specific function in it.

Best regards,
moji


2010-01-12 16:48:49

by Bryan Donlan

[permalink] [raw]
Subject: Re: dlopen in kernel mode

On Tue, Jan 12, 2010 at 11:19 AM, mojtaba <[email protected]> wrote:
> [please cc [email protected]]
> Dear all,
>
> Are there any alternatives for dlopen(), dlsym() and dlclose() in
> kernel mode? Basicly, I need to load an executable object file ?and
> execute an specific function in it.

You could create a kernel module; but the .so files used in userspace,
in general, cannot be loaded.