sock_diag: Introduce the meminfo nla core (v2)
authorPavel Emelyanov <xemul@parallels.com>
Fri, 30 Dec 2011 00:53:13 +0000 (00:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Dec 2011 21:42:19 +0000 (16:42 -0500)
commit5d2e5f274f9e9a06fb934dd45260e2616a9992e6
tree61ae9157e41b00a19f58518d58d0c739393cbccb
parent288461e1546fa4162fa237eeed8ea09a16521dcd
sock_diag: Introduce the meminfo nla core (v2)

Add a routine that dumps memory-related values of a socket.
It's made as an array to make it possible to add more stuff
here later without breaking compatibility.

Since v1: The SK_MEMINFO_ constants are in userspace
visible part of sock_diag.h, the rest is under __KERNEL__.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sock_diag.h
net/core/sock_diag.c