]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94369b97fcd87ab29a6b22db93afd05b25c40cca
tree8d49e08b4887296b9230dd010ab1b435a7980d44
parent67d5bd39347e2821ed18f0c063b04f464cd31a25
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