Sept. 11, 2019
6:54 p.m.
Hi all, I'm looking for a way to determine the PID of the process on which kthread_create is invoked to spawn a new kthread. The newly created kthreads all show current->parent->pid == 2, which I understand corresponds to kthreadd. current->tgid doesn't seem to be set to the main process' PID either. Is there a way to determine this from within the kthread? Thanks!
2529
Age (days ago)
2529
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martin Galvan