Definition of a Generic Netlink command.
More...
#include <netlink/genl/mngt.h>
|
int | c_id |
| Numeric command identifier (required)
|
|
char * | c_name |
| Human readable name (required)
|
|
int | c_maxattr |
| Maximum attribute identifier that the command is prepared to handle.
|
|
int(* | c_msg_parser )(struct nl_cache_ops *, struct genl_cmd *, struct genl_info *, void *) |
| Called whenever a message for this command is received.
|
|
struct nla_policy * | c_attr_policy |
| Attribute validation policy, enforced before the callback is called.
|
|
Definition of a Generic Netlink command.
This structure is used to define the list of available commands on the receiving side.
- Example:
{
.c_name = "NEWFOO" ,
.c_maxattr = FOO_ATTR_MAX,
.c_attr_policy = foo_policy,
.c_msg_parser = foo_msg_parser,
},
{
.c_id = FOO_CMD_DEL,
.c_name = "DELFOO" ,
},
};
[...]
.o_cmds = foo_cmds,
.o_ncmds = ARRAY_SIZE(foo_cmds),
};
Definition of a Generic Netlink command.
int c_id
Numeric command identifier (required)
Definition of a Generic Netlink family.
Definition at line 81 of file mngt.h.
◆ c_id
Numeric command identifier (required)
Definition at line 84 of file mngt.h.
◆ c_name
Human readable name (required)
Definition at line 87 of file mngt.h.
◆ c_maxattr
Maximum attribute identifier that the command is prepared to handle.
Definition at line 90 of file mngt.h.
◆ c_msg_parser
int(* genl_cmd::c_msg_parser) (struct nl_cache_ops *, struct genl_cmd *, struct genl_info *, void *) |
Called whenever a message for this command is received.
Definition at line 93 of file mngt.h.
◆ c_attr_policy
Attribute validation policy, enforced before the callback is called.
Definition at line 98 of file mngt.h.