net: Allow to show socket-specific information in /proc/[pid]/fdinfo/[fd]
authorKirill Tkhai <ktkhai@virtuozzo.com>
Mon, 9 Dec 2019 10:03:40 +0000 (13:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Dec 2019 01:04:54 +0000 (17:04 -0800)
commitb4653342b1514cb11f25b727c689451aff02996d
tree9cd9cecda77261092922976494939bebb7a4050b
parent6b8350a4b0d58cfee39368e5cf6c67369d59b629
net: Allow to show socket-specific information in /proc/[pid]/fdinfo/[fd]

This adds .show_fdinfo to socket_file_ops, so protocols will be able
to print their specific data in fdinfo.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net.h
net/socket.c