public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Can current macro be accessed from interrupt context?
@ 2009-10-22 11:10 Leonidas .
  2009-10-22 11:27 ` Frederic Weisbecker
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Leonidas . @ 2009-10-22 11:10 UTC (permalink / raw)
  To: linux-kernel

Hello,

Going through UTLK, it says that current macro makes sense only in
case of process context,
in case of interrupt context it is invalid.

But current would still be pointing to interrupted process right? The
pointer would still be valid?
Can I safely assume that whether or not interrupt handlers are
executing on separate stacks or
interrupted threads stack, current macro can be accessed from interrupt context?

My use case is to get process id from any context with CONFIG_4KSTACKS = 0 or 1.

Any pointers will be helpful.
-Leo.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-10-23  9:34 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-22 11:10 Can current macro be accessed from interrupt context? Leonidas .
2009-10-22 11:27 ` Frederic Weisbecker
2009-10-22 11:43   ` Leonidas .
2009-10-22 11:49     ` Leonidas .
2009-10-22 12:06     ` Frederic Weisbecker
2009-10-22 13:37       ` Leonidas .
2009-10-22 13:45 ` Arjan van de Ven
2009-10-22 15:17 ` Valdis.Kletnieks
2009-10-22 17:46   ` Leonidas .
2009-10-22 18:12     ` Leonidas .
2009-10-23  8:13     ` Clemens Ladisch
2009-10-23  9:34       ` Leonidas .

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox