Subject: Re: how do I tell if I'm on the interrupt stack?
To: None <mjacob@feral.com>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 09/05/2001 19:34:47
On Sep 5,  3:17pm, mjacob@feral.com (Matthew Jacob) wrote:
-- Subject: Re: how do I tell if I'm on the interrupt stack?

| Hmm? How?
| 
| I mean, without mucking with the code that got started outside my driver?

No, you need to muck with the code.

| Paul suggested testing against curproc- that won't work (looking at interrupt
| path for Alpha it neither sets nor clears cuproc, so this can't be used as a
| general 'on interrupt stack' test).

I am not sure if it is a good idea to add a function that indicates
if you are in an interrupt context or not. I don't see how you can
tell from a static function, specially if you have multiple kernel
threads.

christos