Cache Operations. More...
#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_sock *) |
| Called whenever an update of the cache is required. More... | |
| 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. More... | |
| 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 [] |
Cache Operations.
Referenced by genl_register(), and genl_unregister().
| struct nl_af_group* nl_cache_ops::co_groups |
Referenced by nl_cache_mngr_add().
| int nl_cache_ops::co_hdrsize |
Referenced by genl_register(), and nl_msg_dump().
Referenced by nl_cache_mngt_provide(), nl_cache_mngt_require(), and nl_cache_mngt_unprovide().
| int(* nl_cache_ops::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.
Must parse the message and call the paser callback function (nl_parser_param) provided via the argument.
Referenced by genl_register().
| struct nl_msgtype nl_cache_ops::co_msgtypes[] |
Referenced by genl_register(), nl_cache_include(), nl_cache_ops_associate(), and nl_msgtype_lookup().
| char* nl_cache_ops::co_name |
Referenced by nl_cache_mngt_register(), nl_cache_mngt_unregister(), and nl_cache_ops_lookup().
| struct nl_cache_ops* nl_cache_ops::co_next |
| struct nl_object_ops* nl_cache_ops::co_obj_ops |
| int nl_cache_ops::co_protocol |
Referenced by genl_register(), nl_cache_mngr_add(), and nl_cache_ops_associate().
Called whenever an update of the cache is required.
Must send a request message to the kernel requesting a complete dump.
Referenced by nl_cache_request_full_dump().