Logo Search packages:      
Sourcecode: libnl version File versions  Download package

int nl_cache_refill ( struct nl_handle handle,
struct nl_cache cache 

(Re)fill a cache with the contents in the kernel.

  • handle netlink handle
  • cache cache to update

Clears the specified cache and fills it with the current state in the kernel.

0 or a negative error code.

Definition at line 662 of file cache.c.

References nl_cache_clear(), nl_cache_pickup(), and nl_cache_request_full_dump().

Referenced by nfnl_ct_alloc_cache(), nl_cache_mngr_add(), rtnl_class_alloc_cache(), rtnl_cls_alloc_cache(), rtnl_link_alloc_cache(), rtnl_neigh_alloc_cache(), rtnl_neightbl_alloc_cache(), rtnl_qdisc_alloc_cache(), rtnl_route_alloc_cache(), and rtnl_rule_alloc_cache_by_family().

      int err;

      err = nl_cache_request_full_dump(handle, cache);
      if (err < 0)
            return err;

      NL_DBG(2, "Upading cache %p <%s>, request sent, waiting for dump...\n",
             cache, nl_cache_name(cache));

      return nl_cache_pickup(handle, cache);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index