Results 1 to 3 of 3
hi , i need C code to get child pids from its parent pid in linux and in kernel mode, is there anything like getpid() or getppid() which works in ...
- 06-28-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 1
How to get child pids from parent pid in linux kernel mode?
hi , i need C code to get child pids from its parent pid in linux and in kernel mode, is there anything like getpid() or getppid() which works in kernel mode? can you suggest ant trick how to do this. thanks
- 06-28-2010 #2
If your referring to kernel modules, then try including the linux/sched.h header and using.
current->pidMake mine Arch Linux
- 06-29-2010 #3Linux Newbie
- Join Date
- Apr 2007
- Posts
- 119
I usually track my children pids in an array if there are a few of them. If you just want to make sure they have ended, you can just use wait().


Reply With Quote