unix_diag: Dumping exact socket core
authorPavel Emelyanov <xemul@parallels.com>
Thu, 15 Dec 2011 02:45:07 +0000 (02:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Dec 2011 18:48:28 +0000 (13:48 -0500)
commit5d3cae8bc39dd38d1aa5fd4bbc788c7b43fcaa71
tree8d49e08b4887296b9230dd010ab1b435a7980d44
parent45a96b9be6ec1b7d248642d17ceee59ff5f64451
unix_diag: Dumping exact socket core

The socket inode is used as a key for lookup. This is effectively
the only really unique ID of a unix socket, but using this for
search currently has one problem -- it is O(number of sockets) :(

Does it worth fixing this lookup or inventing some other ID for
unix sockets?

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/diag.c