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

int nl_cache_pickup ( struct nl_sock *  sk,
struct nl_cache *  cache 
)

Pickup a netlink dump response and put it into a cache.

  • sk Netlink socket.
  • cache Cache to put items into.
Waits for netlink messages to arrive, parses them and puts them into the specified cache.

Returns:
0 on success or a negative error code.

Definition at line 509 of file cache.c.

References __cache_pickup().

Referenced by flnl_lookup(), and nl_cache_refill().

{
      struct nl_parser_param p = {
            .pp_cb = pickup_cb,
            .pp_arg = cache,
      };

      return __cache_pickup(sk, cache, &p);
}


Generated by  Doxygen 1.6.0   Back to index