From: Stephen Hemminger <shemminger@linux-foundation.org>
To: linux-kernel@vger.kernel.org
Subject: Re: Fwd: request_module() fails
Date: Wed, 1 Aug 2007 09:20:23 +0100 [thread overview]
Message-ID: <20070801092023.10655b4c@oldman.hamilton.local> (raw)
In-Reply-To: <a307c1910708010059l6c2c9df0n4ad9d0197eaba0f@mail.gmail.com>
On Wed, 1 Aug 2007 13:29:18 +0530
"Gireesh Kumar M" <gireesh.mnair@gmail.com> wrote:
> Hi,
>
> I'm trying to load some modules upon occurance of a GPIO interrupt.
> The ISR checks some register and then schedules a tasklet to act
> further on the interrupt.
> Inside the tasklet, I call request_module to load a driver. But, here
> it's failing. Please see the error log pasted below.
> When I tried to load the same module using modprobe and it works fine. I
> have edited modules.dep with an entry for my module.
You can't sucessfully load a module from tasklet because tasklet's run
in softirq. You need to use a work queue (or other mechanism) that runs
in process context. Loading a module will require accessing disk, and that
can only be done from process context.
Your whole scheme is pretty daft, because it will be slow and you might
as well have the module already loaded.
prev parent reply other threads:[~2007-08-01 8:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <a307c1910708010011l57dbee87hb0d9a725ac259966@mail.gmail.com>
2007-08-01 7:59 ` Gireesh Kumar M
2007-08-01 8:20 ` Stephen Hemminger [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=20070801092023.10655b4c@oldman.hamilton.local \
--to=shemminger@linux-foundation.org \
--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
all inboxes | Powered by JetHome®