From: Paul Wagland <paul@wagland.net>
To: Linux SCSI mailing list <linux-scsi@vger.kernel.org>
Cc: hch@infradead.org
Subject: Re: megaraid /proc under kernel 2.6.2
Date: Mon, 16 Feb 2004 01:18:33 +0100 [thread overview]
Message-ID: <1076890712.2943.276.camel@morsel.kungfoocoder.org> (raw)
In-Reply-To: <1076884890.2943.265.camel@morsel.kungfoocoder.org>
[-- Attachment #1: Type: text/plain, Size: 1667 bytes --]
Hi again, further information to add....
On Sun, 2004-02-15 at 23:41, Paul Wagland wrote:
> the board. So, I am assuming that mega_create_proc_entry() is called.
> The first thing that this does is to call (effectively)
> proc_mkdir("hba0", mega_proc_dir_entry); The only way that this can fail
> to create /proc/megaraid/hba0 (as far as I can see) is if
> mega_proc_dir_entry is null. The only way that it can be null, is if
> megaraid_probe_one() is called before megaraid_init(), since the
> megaraid directory is created.
After adding some printk's to figure out what was going on, I am
officially confused. I added this line:
printk(KERN_WARNING "megaraid: trying to proc_mkdir index:%d, parent:%p, procdir:%s\n",index, parent, string);
to mega_create_proc_entry() which gives this response when booting the
kernel and loading the module:
megaraid: trying to proc_mkdir index:0, parent:00000000, procdir:hba0
Now, the problem is that this means that the following lines:
controller_proc_dir_entry =
adapter->controller_proc_dir_entry = proc_mkdir(string, parent);
if(!controller_proc_dir_entry) {
printk(KERN_WARNING "\nmegaraid: proc_mkdir failed\n");
return;
}
should print a warning and return. Well, it may or may not be returning,
but the "proc_mkdir failed" never turns up. But, if you pass NULL into
proc_mkdir as the parent, then it will return NULL as a result, or at
least it will as far as I can tell.
So, why is that message not turning up?
I have not looked any further into the missing driver references
problem, hopefully someone else will know what that problem is :-)
Cheers,
Paul
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-02-16 0:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-15 22:41 megaraid /proc under kernel 2.6.2 Paul Wagland
2004-02-16 0:18 ` Paul Wagland [this message]
2004-02-16 23:04 ` *solved* " Paul Wagland
2004-02-17 16:57 ` Matthew Wilcox
2004-02-17 17:36 ` Paul Wagland
2004-02-16 1:56 ` Jeff Garzik
2004-02-16 8:33 ` Paul Wagland
2004-02-16 9:59 ` Christoph Hellwig
2004-02-16 21:03 ` Paul Wagland
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=1076890712.2943.276.camel@morsel.kungfoocoder.org \
--to=paul@wagland.net \
--cc=hch@infradead.org \
--cc=linux-scsi@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