LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 04: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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:16 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
Open Source Consulting | Domain Registration