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

int rtnl_link_alloc_cache ( struct nl_sock *  sk,
struct nl_cache **  result 
)

Allocate link cache and fill in all configured links.

  • sk Netlink socket.
  • result Pointer to store resulting cache.
Allocates a new link cache, initializes it properly and updates it to include all links currently configured in the kernel.

Returns:
0 on success or a negative error code.

Definition at line 776 of file link.c.

{
      return nl_cache_alloc_and_fill(&rtnl_link_ops, sk, result);
}


Generated by  Doxygen 1.6.0   Back to index