]>
git.proxmox.com Git - mirror_iproute2.git/blob - devlink/mnlg.h
2 * mnlg.h Generic Netlink helpers for libmnl
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
9 * Authors: Jiri Pirko <jiri@mellanox.com>
15 #include <libmnl/libmnl.h>
19 struct nlmsghdr
*mnlg_msg_prepare(struct mnlg_socket
*nlg
, uint8_t cmd
,
21 int mnlg_socket_send(struct mnlg_socket
*nlg
, const struct nlmsghdr
*nlh
);
22 int mnlg_socket_recv_run(struct mnlg_socket
*nlg
, mnl_cb_t data_cb
, void *data
);
23 int mnlg_socket_group_add(struct mnlg_socket
*nlg
, const char *group_name
);
24 struct mnlg_socket
*mnlg_socket_open(const char *family_name
, uint8_t version
);
25 void mnlg_socket_close(struct mnlg_socket
*nlg
);