checkpoint: generalize netlink requests code
This is a precursor patch. Netlink request code is mostly the same for any kind of sockets. Only 2 places differs: request creation and callback address. This patch parametrizes netlink call function with a pointer to a request structure, request size and receive callback, which replaces hard-coded unix sockets parts. Signed-off-by:Stanislav Kinsbursky <skinsbursky@parallels.com> Acked-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org>
Showing
Please
register
or
sign in
to comment