Re: [PATCH] sock: introduce SO_MEMINFO getsockopt

2017-03-22 Thread David Miller
From: Josh Hunt Date: Mon, 20 Mar 2017 15:22:03 -0400 > 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 b

[PATCH] sock: introduce SO_MEMINFO getsockopt

2017-03-20 Thread Josh Hunt
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 Dum