From: Keith Owens <kaos@ocs.com.au>
To: "Vlodavsky, Zvi" <zvi.vlodavsky@intel.com>
Cc: "'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>
Subject: Re: Using "query_module"
Date: Mon, 04 Feb 2002 21:20:09 +1100 [thread overview]
Message-ID: <19550.1012818009@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Mon, 04 Feb 2002 12:04:19 +0200." <436282DBEE7CD51191E30002A50A636924113B@hasmsx102.iil.intel.com>
On Mon, 4 Feb 2002 12:04:19 +0200 ,
"Vlodavsky, Zvi" <zvi.vlodavsky@intel.com> wrote:
>Please personally CC me with responses on this posting:
>I would like to use the "query_module" system call with the QM_SYMBOLS flag
>in an application, but I am not sure of what the appropriate way of doing it
>is, and whether it is safe.
query_module(NULL, 0, NULL, 0, NULL) returns 0 if the kernel supports
query_module, -ENOSYS if it does not.
If the kernel supports query_module,
query_module(NULL, -1, NULL, 0, NULL)
returns -ENOSYS if the kernel has been compiled without modules,
-EINVAL if the kernel was compiled with module support.
Grab the modutils source and see utils/modstat.c::new_get_kernel_info,
it uses all the query_module facilities.
prev parent reply other threads:[~2002-02-04 10:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-04 10:04 Vlodavsky, Zvi
2002-02-04 10:20 ` Keith Owens [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19550.1012818009@ocs3.intra.ocs.com.au \
--to=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=zvi.vlodavsky@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®