From: yiding_wang@agilent.com
To: linux-kernel@vger.kernel.org
Subject: 2.5.72 insmod question, more info.
Date: Thu, 17 Jul 2003 18:47:08 -0600 [thread overview]
Message-ID: <334DD5C2ADAB9245B60F213F49C5EBCD05D55213@axcs03.cos.agilent.com> (raw)
Another thing I noticed is the query_module have different arguments in 2.4.20-8 nand 2.5.72.
For the working insmod under 2.4.20-8, it has NULL pointer for buffer amd /* 8 entries */ for module, like following:
query_module(NULL, 0, NULL, 0) = 0
query_module(NULL, QM_MODULES, { /* 8 entries */ }, 8) = 0
query_module("autofs", QM_INFO, {address=0xd08d8000, size=13684, flags=MOD_RUNNING|MOD_AUTOCLEAN, usecount=0}, 16) = 0
brk(0) = 0x807d000
brk(0x807e000) = 0x807e000
query_module("autofs", QM_SYMBOLS, { /* 21 entries */ }, 21) = 0
query_module("e100", QM_INFO, {address=0xd08c5000, size=62340, flags=MOD_RUNNING|MOD_VISITED|MOD_USED_ONCE, usecount=0}, 16) = 0
query_module("e100", QM_SYMBOLS, 0x807d178, 1024, 1919) = -1 ENOSPC (No space left on device)
query_module("e100", QM_SYMBOLS, { /* 67 entries */ }, 67) = 0
However, on same system but booted with 2.5.72 bzImage, it has the following,
query_module(NULL, 0, 0, 0, 134725736) = -1 ENOSYS (Function not implemented)
query_module(NULL, QM_MODULES, 0x807cd38, 256, 1108208563) = -1 ENOSYS (Function not implemented)
write(2, "insmod: ", 8insmod: ) = 8
write(2, "QM_MODULES: Function not impleme"..., 37QM_MODULES: Function not implemented) = 37
write(2, "\n", 1) = 1
flock(3, LOCK_UN) = 0
close(3) = 0
chdir("/var/log/ksymoops") = -1 ENOENT (No such file or directory)
exit_group(1) = ?
Thanks!
Eddie
> -----Original Message-----
> From: WANG,YIDING (A-SanJose,ex1)
> Sent: Thursday, July 17, 2003 5:36 PM
> To: linux-kernel@vger. kernel. org (E-mail)
> Subject: 2.5.72 insmod question
>
>
> I completed a fibre channel driver change to support for
> 2.5.72 (suppose to be 2.6 compatible) and compiled it OK.
> When trying load the driver with "insmod", it complains with
> the message "insmod: QM_MODULES: Function not implemented".
>
> I tried kernel built module qla1280.o and got the same
> result. It seems the insmod utility in my system is not
> compatible with new 2.5.72 built module.
>
> I have 2.4.20-8 kernel installed first and driver loads and
> runs fine. Later added 2.5.72 kernel and booted with its
> bzImage works fine too. However, the insmod utility I am
> using to load new driver was from 2.4.20-8 which has
> system_query_module() being called. I checked Doc. and
> source code for 2.5.72 and could not find same function call
> in module.c
>
> Some web documents mentioned that the module installation is
> changed from 2.4.x to 2.5.x. So far I am still looking for
> the solution and hope someone can help me on the issue.
>
> I am compiling the driver out side of kernel source tree but
> using kernel environmental variables for compatibility.
>
> Regards,
>
> Eddie
>
>
>
>
reply other threads:[~2003-07-18 0:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=334DD5C2ADAB9245B60F213F49C5EBCD05D55213@axcs03.cos.agilent.com \
--to=yiding_wang@agilent.com \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).