From: Gianni Tedesco <gianni@ecsc.co.uk>
To: dijital1 <dijital1@underboost.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: referencing other modules
Date: 18 Oct 2002 17:46:29 +0100 [thread overview]
Message-ID: <1034959588.29675.0.camel@lemsip> (raw)
In-Reply-To: <Pine.LNX.4.44.0210162322070.12334-100000@area51.underboost.net>
[-- Attachment #1: Type: text/plain, Size: 949 bytes --]
On Thu, 2002-10-17 at 04:25, dijital1 wrote:
> Does anyone have any ideas as to why this following 3 lines of code
> don't work? The kernel version is 2.5.43 and I have several other modules
> loaded before I load the module containing this code. From what I can
> discern in linux/kernel/module.c new modules are added to the head of the
> list to it seems that my code would work. Any help or suggestions would be
> appreciated. Incidentally, this code is being called from the module
> initialisation function.
>
> struct module *next_mod;
> next_mod=THIS_MODULE->next;
> printk(KERN_DEBUG"%s\n", next_mod->name);
presumably next_mod==NULL, items may be inserted backwards in to the
list (that is usual for singly linked lists).
--
// Gianni Tedesco (gianni at ecsc dot co dot uk)
lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]
prev parent reply other threads:[~2002-10-18 16:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-17 3:25 referencing other modules dijital1
2002-10-18 16:46 ` Gianni Tedesco [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=1034959588.29675.0.camel@lemsip \
--to=gianni@ecsc.co.uk \
--cc=dijital1@underboost.net \
--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