[lkml]   [2000]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Calling current() from interrupt context
On Sun, Oct 08, 2000 at 04:36:09PM -0600, wrote:

> Looking at the code, I don't see any places where "current" is not valid.
> Got some examples?

More a design principle than a real problem.

> BTW: there is an implicit reference to "current" in smp_processor_id.

Which is valid because the process the current variable is pointing to is
always running on the current CPU, therefore it's implicitly locked and
can't just go away. Due to the existence of the idle process there is
also a guarantee that current always points to a valid process. Not much
guarantee of anything else for the current process - it might just be
exiting for example.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:39    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean