diff options
author | Josh Hunt <johunt@akamai.com> | 2017-03-20 22:22:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-22 21:18:58 +0300 |
commit | a2d133b1d465016d0d97560b11f54ba0ace56d3e (patch) | |
tree | 0c41151a6860eb295d7919e22cce1dd5a8b0aea9 /arch/mn10300/include/uapi/asm/socket.h | |
parent | c7cd4c9bf8df87027e739fe66d0a55951f6875d8 (diff) | |
download | linux-a2d133b1d465016d0d97560b11f54ba0ace56d3e.tar.xz |
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>
Diffstat (limited to 'arch/mn10300/include/uapi/asm/socket.h')
-rw-r--r-- | arch/mn10300/include/uapi/asm/socket.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mn10300/include/uapi/asm/socket.h b/arch/mn10300/include/uapi/asm/socket.h index 0e12527c4b0e..312d2c457a04 100644 --- a/arch/mn10300/include/uapi/asm/socket.h +++ b/arch/mn10300/include/uapi/asm/socket.h @@ -92,4 +92,6 @@ #define SCM_TIMESTAMPING_OPT_STATS 54 +#define SO_MEMINFO 55 + #endif /* _ASM_SOCKET_H */ |