I'm searching the "getpid" function in the kernel, however i could not find the actual function.
It should be something like this:
asmlinkage long sys_getpid(void)
{
return current-> tgetid;
}
All I can find is system call tables, not the actual implementation of this system call.
Kernel version is: 3.0.20
Thanks in advance.