Object representing a kernel side registered Generic Netlink family.
More...
Object representing a kernel side registered Generic Netlink family.
◆ genl_family_alloc()
struct genl_family * genl_family_alloc |
( |
void |
| ) |
|
Allocate new Generic Netlink family object.
- Returns
- Newly allocated Generic Netlink family object or NULL.
Definition at line 180 of file family.c.
References nl_object_alloc().
◆ genl_family_put()
void genl_family_put |
( |
struct genl_family * |
family | ) |
|
◆ genl_family_get_id()
unsigned int genl_family_get_id |
( |
struct genl_family * |
family | ) |
|
Return numeric identifier.
- Parameters
-
family | Generic Netlink family object |
- Returns
- Numeric identifier or 0 if not available.
Definition at line 212 of file family.c.
Referenced by genl_ctrl_resolve().
◆ genl_family_set_id()
void genl_family_set_id |
( |
struct genl_family * |
family, |
|
|
unsigned int |
id |
|
) |
| |
Set the numeric identifier.
- Parameters
-
family | Generic Netlink family object |
id | New numeric identifier |
Definition at line 225 of file family.c.
◆ genl_family_get_name()
char * genl_family_get_name |
( |
struct genl_family * |
family | ) |
|
Return human readable name.
- Parameters
-
family | Generic Netlink family object |
- Returns
- Name of family or NULL if not available
Definition at line 244 of file family.c.
◆ genl_family_set_name()
void genl_family_set_name |
( |
struct genl_family * |
family, |
|
|
const char * |
name |
|
) |
| |
Set human readable name.
- Parameters
-
family | Generic Netlink family object |
name | New human readable name |
Definition at line 257 of file family.c.
◆ genl_family_get_version()
uint8_t genl_family_get_version |
( |
struct genl_family * |
family | ) |
|
Return interface version.
- Parameters
-
family | Generic Netlink family object |
- Returns
- Interface version or 0 if not available.
Definition at line 274 of file family.c.
◆ genl_family_set_version()
void genl_family_set_version |
( |
struct genl_family * |
family, |
|
|
uint8_t |
version |
|
) |
| |
Set interface version.
- Parameters
-
family | Generic Netlink family object |
version | New interface version |
Definition at line 287 of file family.c.
◆ genl_family_get_hdrsize()
uint32_t genl_family_get_hdrsize |
( |
struct genl_family * |
family | ) |
|
Return user header size expected by kernel component.
- Parameters
-
family | Generic Netlink family object |
- Returns
- Expected header length or 0 if not available.
Definition at line 306 of file family.c.
◆ genl_family_set_hdrsize()
void genl_family_set_hdrsize |
( |
struct genl_family * |
family, |
|
|
uint32_t |
hdrsize |
|
) |
| |
◆ genl_family_get_maxattr()
uint32_t genl_family_get_maxattr |
( |
struct genl_family * |
family | ) |
|
◆ genl_family_set_maxattr()
void genl_family_set_maxattr |
( |
struct genl_family * |
family, |
|
|
uint32_t |
maxattr |
|
) |
| |
◆ genl_family_add_op()
int genl_family_add_op |
( |
struct genl_family * |
family, |
|
|
int |
id, |
|
|
int |
flags |
|
) |
| |
◆ genl_family_add_grp()
int genl_family_add_grp |
( |
struct genl_family * |
family, |
|
|
uint32_t |
id, |
|
|
const char * |
name |
|
) |
| |