libnl  1.1.4
Data Fields
nl_cache_ops Struct Reference

Cache Operations. More...

#include <cache-api.h>

Data Fields

char * co_name
 
int co_hdrsize
 
int co_protocol
 
struct nl_af_groupco_groups
 
int(* co_request_update )(struct nl_cache *, struct nl_handle *)
 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_opsco_obj_ops
 
struct nl_cache_opsco_next
 
struct nl_cache * co_major_cache
 
struct genl_opsco_genl
 
unsigned int co_refcnt
 Reference counter.
 
void(* unused1 )(void)
 
void(* unused2 )(void)
 
void(* unused3 )(void)
 
void(* unused4 )(void)
 
void(* unused5 )(void)
 
void(* unused6 )(void)
 
void(* unused7 )(void)
 
void(* unused8 )(void)
 
struct nl_msgtype co_msgtypes []
 

Detailed Description

Definition at line 163 of file cache-api.h.

Field Documentation

◆ co_request_update

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.

Definition at line 176 of file cache-api.h.

◆ co_msg_parser

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.

Definition at line 183 of file cache-api.h.

Referenced by genl_register().