Find the answer to your Linux question:
Results 1 to 2 of 2
Hi,I am writing network module (LKM). I got process information by current->pid and current->comm. But now i want current state of task. I want to know the state of running ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    4

    how to get running process state

    Hi,I am writing network module (LKM). I got process information by current->pid and current->comm. But now i want current state of task. I want to know the state of running the process. I dont find any information in struct task_struct structure. how can i get the state of current running process.

  2. #2
    Just Joined!
    Join Date
    Jul 2009
    Posts
    6
    ps - ef | grep <process name>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...