]> git.baikalelectronics.ru Git - kernel.git/commit
taskstats: use the libnl API to align nlattr on 64-bit
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 22 Apr 2016 15:31:24 +0000 (17:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Apr 2016 00:13:25 +0000 (20:13 -0400)
commit9df561852511a0240b303f5615d999ab6ec86563
treeea4a3f342c07929025c193b2b67e206e1008afa9
parent3268c40ca1b0b664eed87ee72ce2d3d8e0d7aeba
taskstats: use the libnl API to align nlattr on 64-bit

Goal of this patch is to use the new libnl API to align netlink attribute
when needed.
The layout of the netlink message will be a bit different after the patch,
because the padattr (TASKSTATS_TYPE_STATS) will be inside the nested
attribute instead of before it.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/taskstats.c