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

struct rtnl_link* rtnl_link_alloc ( void   )  [read]

Allocate and initialize new link object.

Note:
Free the memory after usage using rtnl_link_put() or rtnl_link_free().
Returns:
Newly allocated link object or NULL if an error occured.

Definition at line 602 of file link.c.

References nl_object_alloc_from_ops().

{
      return (struct rtnl_link *) nl_object_alloc_from_ops(&rtnl_link_ops);
}


Generated by  Doxygen 1.6.0   Back to index