Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-11-2005, 04:06 AM   #1
LQ Newbie
Registered: Jan 2005
Location: Los Angeles, CA
Distribution: FC3
Posts: 4

Rep: Reputation: 0
Kernel Thread Execution Context and PID


When kernel threads such as ksoftirqdCPU0 or kswapd are scheduled to run, do they run on their own kernel stack or is it whatever kernel stack that happens to be there? Do these kernel threads have their own process descriptors like a user process does?

I've been trying to capture the PID of a kernel thread using the current macro while in a BH of an interrupt handler, expecting to get the PID of ksoftirqd, which is supposed to run any tasklets, but I always get the PID of the user process that was interrupted. If kernel threads have their own process descriptors and in their own kernel stack, shouldn't I be able to get the PID this way? I'm working with Linux 2.6.9 btw.

Thanks for any insight.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
obtain pid of a kernel thread ratwings Linux - Software 0 02-11-2005 03:54 PM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM
kernel panic: context corrupt......... penquin_kid Linux - Newbie 4 02-13-2002 12:33 PM
Kernel panic: context corrupt penquin_kid Linux - Software 1 02-11-2002 01:15 PM
Kernel Panic: CPU context corrupt chl Linux - Software 1 11-25-2001 12:08 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration