LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
Kernel Thread Execution Context and PID


Hi,

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.

Ratwings.
 
  


Reply


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 04:54 PM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 09:48 AM
kernel panic: context corrupt......... penquin_kid Linux - Newbie 4 02-13-2002 01:33 PM
Kernel panic: context corrupt penquin_kid Linux - Software 1 02-11-2002 02:15 PM
Kernel Panic: CPU context corrupt chl Linux - Software 1 11-25-2001 01:08 PM


All times are GMT -5. The time now is 03:48 PM.

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