Prev: ramzswap: Eliminate stale data from compressed memory (v2 resend)
Next: [tip:x86/mrst] x86, mrst, pci: return 0 for non-present pci bars
From: Samuel Thibault on 17 May 2010 09:40 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. Samuel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: H. Peter Anvin on 17 May 2010 14:20
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(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |