lkml.org 
[lkml]   [2001]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] processes with shared vm
--On Friday, August 17, 2001 14:30:28 +0000 Mark Hahn 
<hahn@physics.mcmaster.ca> wrote:

> from a quick glance, there is no tgid, and deliberately so:
> proc.thread_group is a list of siblings, no? siblings that
> normally share their struct mm.

There is in fact a tgid in the task_struct. Its value is the pid of the
task that first called clone() with CLONE_THREAD set. And in fact the
getpid() system call actually returns tgid instead of pid. It seems to me
only reasonable to include this in the information available via /proc.

Dave McCracken

======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.031 / U:2.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site