mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
6b8350a4b0
commit
b4653342b1
2 changed files with 13 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue