summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2019-12-09 13:03:40 +0300
committerDavid S. Miller <davem@davemloft.net>2019-12-12 17:04:54 -0800
commitb4653342b1514cb11f25b727c689451aff02996d (patch)
tree9cd9cecda77261092922976494939bebb7a4050b /include/linux
parent6b8350a4b0d58cfee39368e5cf6c67369d59b629 (diff)
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h
index 9cafb5f353a9..6451425e828f 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -171,6 +171,7 @@ struct proto_ops {
int (*compat_getsockopt)(struct socket *sock, int level,
int optname, char __user *optval, int __user *optlen);
#endif
+ void (*show_fdinfo)(struct seq_file *m, struct socket *sock);
int (*sendmsg) (struct socket *sock, struct msghdr *m,
size_t total_len);
/* Notes for implementing recvmsg: