diff options
Diffstat (limited to 'devlink/mnlg.h')
-rw-r--r-- | devlink/mnlg.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/devlink/mnlg.h b/devlink/mnlg.h new file mode 100644 index 0000000..3249c54 --- /dev/null +++ b/devlink/mnlg.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * mnlg.h Generic Netlink helpers for libmnl + * + * Authors: Jiri Pirko <jiri@mellanox.com> + */ + +#ifndef _MNLG_H_ +#define _MNLG_H_ + +#include <libmnl/libmnl.h> + +struct mnlu_gen_socket; + +int mnlg_socket_send(struct mnlu_gen_socket *nlg, const struct nlmsghdr *nlh); +int mnlg_socket_group_add(struct mnlu_gen_socket *nlg, const char *group_name); +int mnlg_socket_get_fd(struct mnlu_gen_socket *nlg); + +#endif /* _MNLG_H_ */ |