System or kernel context

Dag Brattli (dagb@cs.uit.no)
27 Oct 1998 15:32:39 +0100


Hi,

Could anybody tell me how to decide if a kernel "thread of execution" is
running in a process or system context?

I need a process context in order to do some delays/waiting (in a good
way), and I currently send a nofification to a user-space manager (that I
need anyway) which replies with a ioctl which again calls a registred
callback function. This may sound very hairy, but it works just fine. I
just want to avoid this if the current "thread of execution" should happen
to have a process context already.

-- Dag

-- 
   / Dag Brattli                   | Visiting Researcher (1998/1999)      /
  // Research Fellow               | Computing Department                //
 /// University of Tromsoe, Norway | Lancaster University, UK, England  ///
//// http://www.cs.uit.no/~dagb    | Tlf: +44 1524 65201 ext. 93019    ////

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