]> git.baikalelectronics.ru Git - kernel.git/commit
introduce the walk_process_tree() helper
authorOleg Nesterov <oleg@redhat.com>
Mon, 30 Jan 2017 15:06:11 +0000 (18:06 +0300)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 3 Feb 2017 03:34:41 +0000 (16:34 +1300)
commit30246831925baff6b582ecc5f8ffa858f9b251d6
treef30ecfd58043e4a2b32de2b053efac37a4f03b21
parentb2e6314b2514195f4c469ed5dfe7ac9149b84407
introduce the walk_process_tree() helper

Add the new helper to walk the process tree, the next patch adds a user.
Note that it visits the group leaders only, proc_visitor can do
for_each_thread itself or we can trivially extend walk_process_tree() to
do this.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
include/linux/sched.h
kernel/fork.c