[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4BF18760.2090907@zytor.com>
Date: Mon, 17 May 2010 11:13:52 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Samuel Thibault <samuel.thibault@...-lyon.org>,
Srinivas Nayak <sinu.nayak2001@...il.com>,
Jaswinder Singh Rajput <jaswinderlinux@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: Which function returns LWP in Linux.
On 05/17/2010 06:30 AM, Samuel Thibault wrote:
> Srinivas Nayak, le Mon 17 May 2010 15:43:17 +0530, a écrit :
>> After some more research, i foind that
>>
>> syscall(SYS_gettid)
>>
>> returns LWP id. Isn't this correct?
>
> It is correct only on Linux, but yes.
>
For libc's notion of the current thread, pthread_self(3).
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists