On Tue, 2 Aug 2005 09:57:51 +0100 (BST), vinay hegde <[EMAIL PROTECTED]> wrote: >How to differentiate kernel threads from normal >processes inside the Linux kernel code?
The Linux Kernel Debugger (ftp://oss.sgi.com/projects/kdb/download/v4.4) distinguishes between idle tasks, sleeping system daemons and the rest (typically user tasks). An idle task has pid 0, a sleeping system daemon has a NULL mm field and is in S state, everything else is treated as a normal task. Download the latest kdb common patch and look at function kdb_task_state_char. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/