lkml.org 
[lkml]   [2002]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: module_init in interrupt context ?
On Wed, 23 Oct 2002, Armin Schindler wrote:

> With kernel 2.4.19 I noticed that calls from module_init()
> may be done in interrupt context. I didn't have a problem here
> before 2.4.17.

Well, I am positive that this is not so.

> E.g. in module_init() I use pci_module_init() for my driver
> (I don't have HOTPLUG enabled), the when the .probe function is called
> and the card is detected I create a proc entry for this new
> found device, but most of the time create_proc_entry causes
> BUG(), because it is called from interrupt context.

I think you should provide the backtrace and the code in questions.
Obviously, something is wrong, but it's virtually impossible that
module_init() runs from irq context, so it has to be something else.

--Kai

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:30    [W:1.037 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site