Find the answer to your Linux question:
Results 1 to 3 of 3
How can I return a state of system call and PID of its parent from system call?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    6

    Return state and PID of parent? Creating new system call


    How can I return a state of system call and PID of its parent from system call?

  2. #2
    Just Joined!
    Join Date
    Dec 2008
    Posts
    6
    I understand I can use current->pid and current->state of currently running process.

    But how can I pass a process PID (some other process pid, not of this system call) and do the same operation?

  3. #3
    Just Joined!
    Join Date
    Feb 2012
    Location
    Hyderabad, India
    Posts
    11
    Quote Originally Posted by Kdar1987 View Post
    I understand I can use current->pid and current->state of currently running process.

    But how can I pass a process PID (some other process pid, not of this system call) and do the same operation?
    Can you try this post.

    wwwdotlinuxforumsdotorg/forum/kernel/186606-how-print-socket-data-structures.html

Posting Permissions

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