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>
This commit is contained in:

committed by
David S. Miller

parent
6b8350a4b0
commit
b4653342b1
@@ -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:
|
||||
|
Reference in New Issue
Block a user