libnl: /data/src/libnl/include/netlink/genl/family.h Source File

libnl 3.12.0

family.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_FAMILY_H_
7#define NETLINK_GENL_FAMILY_H_
8
9#include <netlink/netlink.h>
10#include <netlink/cache.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16struct genl_family;
17
18extern struct genl_family * genl_family_alloc(void);
19extern void genl_family_put(struct genl_family *);
20
21extern unsigned int genl_family_get_id(struct genl_family *);
22extern void genl_family_set_id(struct genl_family *, unsigned int);
23extern char * genl_family_get_name(struct genl_family *);
24extern void genl_family_set_name(struct genl_family *, const char *);
25extern uint8_t genl_family_get_version(struct genl_family *);
26extern void genl_family_set_version(struct genl_family *, uint8_t);
27extern uint32_t genl_family_get_hdrsize(struct genl_family *);
28extern void genl_family_set_hdrsize(struct genl_family *, uint32_t);
29extern uint32_t genl_family_get_maxattr(struct genl_family *);
30extern void genl_family_set_maxattr(struct genl_family *, uint32_t);
31
32extern int genl_family_add_op(struct genl_family *, int, int);
33extern int genl_family_add_grp(struct genl_family *, uint32_t ,
34 const char *);
35
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif
genl_family_set_name
void genl_family_set_name(struct genl_family *, const char *)
Set human readable name.
Definition family.c:266
genl_family_set_version
void genl_family_set_version(struct genl_family *, uint8_t)
Set interface version.
Definition family.c:296
genl_family_alloc
struct genl_family * genl_family_alloc(void)
Allocate new Generic Netlink family object.
Definition family.c:189
genl_family_put
void genl_family_put(struct genl_family *)
Release reference on Generic Netlink family object.
Definition family.c:203
genl_family_get_version
uint8_t genl_family_get_version(struct genl_family *)
Return interface version.
Definition family.c:283
genl_family_get_name
char * genl_family_get_name(struct genl_family *)
Return human readable name.
Definition family.c:253
genl_family_get_id
unsigned int genl_family_get_id(struct genl_family *)
Return numeric identifier.
Definition family.c:221
genl_family_get_hdrsize
uint32_t genl_family_get_hdrsize(struct genl_family *)
Return user header size expected by kernel component.
Definition family.c:315
genl_family_set_id
void genl_family_set_id(struct genl_family *, unsigned int)
Set the numeric identifier.
Definition family.c:234
genl_family
Definition nl-genl.h:35