Re: netlink nlmsg_pid supposed to be pid or tid?

From: Christopher Friesen
Date: Mon Nov 21 2005 - 14:46:27 EST


Friesen, Christopher [CAR:VC21:EXCH] wrote:

When using netlink, should "nlmsg_pid" be set to pid (current->tgid) or tid (current->pid)?

The reason I ask is that with 2.6.10 we had to set it to tid, which really doesn't make much sense given than sockets are shared across all threads in a process (and gettid() isn't even a libc function).

Chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/