Cache Operations.
#include <cache-api.h>
Data Fields | |
char * | co_name |
int | co_hdrsize |
int | co_protocol |
struct nl_af_group * | co_groups |
int(* | co_request_update )(struct nl_cache *, struct nl_handle *) |
Called whenever an update of the cache is required. | |
int(* | co_msg_parser )(struct nl_cache_ops *, struct sockaddr_nl *, struct nlmsghdr *, struct nl_parser_param *) |
Called whenever a message was received that needs to be parsed. | |
struct nl_object_ops * | co_obj_ops |
struct nl_cache_ops * | co_next |
struct nl_cache * | co_major_cache |
struct genl_ops * | co_genl |
struct nl_msgtype | co_msgtypes [] |
Definition at line 163 of file cache-api.h.
int(* nl_cache_ops::co_request_update)(struct nl_cache *, struct nl_handle *) |
Must send a request message to the kernel requesting a complete dump.
int(* nl_cache_ops::co_msg_parser)(struct nl_cache_ops *, struct sockaddr_nl *, struct nlmsghdr *, struct nl_parser_param *) |
Must parse the message and call the paser callback function (nl_parser_param) provided via the argument.
Referenced by genl_register().