Josh Hunt a2d133b1d4 sock: introduce SO_MEMINFO getsockopt
Allows reading of SK_MEMINFO_VARS via socket option. This way an
application can get all meminfo related information in single socket
option call instead of multiple calls.

Adds helper function, sk_get_meminfo(), and uses that for both
getsockopt and sock_diag_put_meminfo().

Suggested by Eric Dumazet.

Signed-off-by: Josh Hunt <johunt@akamai.com>
Reviewed-by: Jason Baron <jbaron@akamai.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-22 11:18:58 -07:00
..
2017-02-07 11:19:00 -05:00
2017-03-12 23:47:16 -07:00
2017-02-07 13:07:47 -05:00
2017-02-23 13:53:42 -05:00
2015-04-02 14:04:59 -04:00
2015-11-22 11:54:10 -05:00
2016-11-16 18:32:02 -05:00
2017-03-22 11:18:58 -07:00
2015-10-26 22:24:22 -07:00