libnl 1.1.4
ctrl.h
1/*
2 * netlink/genl/ctrl.h Generic Netlink Controller
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation version 2.1
7 * of the License.
8 *
9 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
10 */
11
12#ifndef NETLINK_GENL_CTRL_H_
13#define NETLINK_GENL_CTRL_H_
14
15#include <netlink/netlink.h>
16#include <netlink/cache.h>
17#include <netlink/addr.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23struct genl_family;
24
25extern struct nl_cache * genl_ctrl_alloc_cache(struct nl_handle *);
26extern struct genl_family * genl_ctrl_search(struct nl_cache *, int);
27extern struct genl_family * genl_ctrl_search_by_name(struct nl_cache *,
28 const char *);
29extern int genl_ctrl_resolve(struct nl_handle *,
30 const char *);
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif
int genl_ctrl_resolve(struct nl_handle *, const char *)
Resolve generic netlink family name to its identifier.
Definition: ctrl.c:238
struct genl_family * genl_ctrl_search_by_name(struct nl_cache *, const char *)
Look up generic netlink family by family name in the provided cache.
Definition: ctrl.c:208
struct genl_family * genl_ctrl_search(struct nl_cache *, int)
Look up generic netlink family by id in the provided cache.
Definition: ctrl.c:174