libnl 3.7.0
ctrl.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2003-2012 Thomas Graf <tgraf@suug.ch>
4 */
5
6#ifndef NETLINK_GENL_CTRL_H_
7#define NETLINK_GENL_CTRL_H_
8
9#include <netlink/netlink.h>
10#include <netlink/cache.h>
11#include <netlink/addr.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17struct genl_family;
18
19extern int genl_ctrl_alloc_cache(struct nl_sock *,
20 struct nl_cache **);
21extern struct genl_family * genl_ctrl_search(struct nl_cache *, int);
22extern struct genl_family * genl_ctrl_search_by_name(struct nl_cache *,
23 const char *);
24extern int genl_ctrl_resolve(struct nl_sock *,
25 const char *);
26extern int genl_ctrl_resolve_grp(struct nl_sock *sk,
27 const char *family,
28 const char *grp);
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif
int genl_ctrl_resolve(struct nl_sock *, const char *)
Resolve Generic Netlink family name to numeric identifier.
Definition: ctrl.c:423
int genl_ctrl_alloc_cache(struct nl_sock *, struct nl_cache **)
Allocate a new controller cache.
Definition: ctrl.c:327
struct genl_family * genl_ctrl_search_by_name(struct nl_cache *, const char *)
Search controller cache for a family name match.
Definition: ctrl.c:381
struct genl_family * genl_ctrl_search(struct nl_cache *, int)
Search controller cache for a numeric address match.
Definition: ctrl.c:348
int genl_ctrl_resolve_grp(struct nl_sock *sk, const char *family, const char *grp)
Resolve Generic Netlink family group name.
Definition: ctrl.c:465