Checking DPL of a Task State Segment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Has someone a clue how to check the DPL of the TSS
of the task that is currently running?

The reason why I am writing is the following one: 
On every interrupt I have to check if current task
is a kernel thread or a user process. Normally I could
use '(current->mm==NULL)' to identify kernel threads 
- because kernel threads don't have own memory descriptors -
but in my case I can't. Checking the DPL would be one way
to find out what I need to know, but how can I do that?
Are there functions or macros already existing ...and ready
to use?


Thanks in advance for any ideas

Thomas 





 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux