SYS_GETPID
Section: ()
Updated: 06 October 2005
Index
Return to Main Contents
NAME
sys_getpid - return the thread group id of the current process
SYNOPSIS
"SYNOPSIS"
asmlinkage long sys_getpid ( void);
ARGUMENTS
- void
-
no arguments
DESCRIPTION
Note, despite the name, this returns the tgid not the pid. The tgid and
the pid are identical unless CLONE_THREAD was specified on clone in
which case the tgid is the same in all threads of the same group.
This is SMP safe as current->tgid does not change.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 05:31:00 GMT, October 06, 2005