]> git.proxmox.com Git - mirror_iproute2.git/blob - include/mnl_utils.h
lib: Extract from devlink/mnlg a helper, mnlu_socket_recv_run()
[mirror_iproute2.git] / include / mnl_utils.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __MNL_UTILS_H__
3 #define __MNL_UTILS_H__ 1
4
5 struct mnl_socket *mnlu_socket_open(int bus);
6 struct nlmsghdr *mnlu_msg_prepare(void *buf, uint32_t nlmsg_type, uint16_t flags,
7 void *extra_header, size_t extra_header_size);
8 int mnlu_socket_recv_run(struct mnl_socket *nl, unsigned int seq, void *buf, size_t buf_size,
9 mnl_cb_t cb, void *data);
10
11 #endif /* __MNL_UTILS_H__ */