Re: query_modules syscall gone? Any replacement?

Randy.Dunlap
2005-09-13T15:44:46Z

On Tue, 13 Sep 2005, iSteve wrote:

> > Nope, they are not prevented. However, there is a Tainted flag
> > that is set when one is loaded (and that flag is never cleared).
> >
>
> Okay, I've been wrong in my conclusion and I gotta read some fine manual
> about how the modules actually work -- could you recommend me some in
> particular?

Nope, there is precious little doc about modules, especially
in 2.6.

There is a FAQ, but I doubt that it answers many of your
questions.
http://www.kernel.org/pub/linux/kernel/people/rusty/modules/FAQ

You could try LDD3, but I don't see much there that would help
you either.
http://lwn.net/Kernel/LDD3/

> >> - /proc/modules and /sys/module interface doesn't by far supply what
> >>query_module could do
> >
> > Can you state succinctly exactly what you are trying to do?
>
> I would like to be able to query symbols of a loaded module, get list of
> and list of dependencies of loaded module from an app, preferably
> without having to parse a file...

No, no syscall to do that. Looks like it will require reading
and parsing files.

And you answered my "what" question clearly, so I have one more.
Why? for what purpose, to what end? What are you tring to
accomplish?

Thanks,
--
~Randy