.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SYS_GETPID" "" "06 October 2005" "" ""
.SH NAME
sys_getpid \- return the thread group id of the current process
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
asmlinkage long sys_getpid ( \fIvoid\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIvoid\fB\fR
no arguments
.SH "DESCRIPTION"
.PP
.PP
Note, despite the name, this returns the tgid not the pid. The tgid and
the pid are identical unless CLONE_THREAD was specified on \fBclone\fR in
which case the tgid is the same in all threads of the same group.
.PP
This is SMP safe as current->tgid does not change.