• Home
  • Raw
  • Download

Lines Matching full:family

109  * @return -NLE_EXIST Operations for address family already registered.
178 * @name Link Address Family Modules
185 * Return operations of a specific link address family
186 * @arg family Address family
192 struct rtnl_link_af_ops *rtnl_link_af_ops_lookup(const unsigned int family) in rtnl_link_af_ops_lookup() argument
194 if (family == AF_UNSPEC || family >= AF_MAX) in rtnl_link_af_ops_lookup()
198 if (af_ops[family]) in rtnl_link_af_ops_lookup()
199 af_ops[family]->ao_refcnt++; in rtnl_link_af_ops_lookup()
202 return af_ops[family]; in rtnl_link_af_ops_lookup()
207 * @arg ops Address family operations.
216 * Allocate and return data buffer for link address family modules
218 * @arg ops Address family operations
220 * This function must be called by link address family modules in all
225 * allocate a data buffer for each registered link address family.
232 int family; in rtnl_link_af_alloc() local
237 family = ops->ao_family; in rtnl_link_af_alloc()
239 if (!link->l_af_data[family]) { in rtnl_link_af_alloc()
243 link->l_af_data[family] = ops->ao_alloc(link); in rtnl_link_af_alloc()
244 if (!link->l_af_data[family]) in rtnl_link_af_alloc()
248 return link->l_af_data[family]; in rtnl_link_af_alloc()
252 * Return data buffer for link address family modules
254 * @arg ops Address family operations
257 * address family module or NULL if the buffer was not allocated yet. This
274 * Register operations for a link address family
275 * @arg ops Address family operations
278 * address family. It will make the operations implemented by the module
282 * @return -NLE_INVAL Address family is out of range (0..AF_MAX)
283 * @return -NLE_EXIST Operations for address family already registered.
301 NL_DBG(1, "Registered link address family operations %u\n", in rtnl_link_af_register()
311 * Unregister operations for a link address family
312 * @arg ops Address family operations
315 * address family is unloaded or becomes unavailable. It must provide a
321 * @return -NLE_OBJ_NOTFOUND Address family operations not registered.
322 * @return -NLE_BUSY Address family operations still in use.
344 NL_DBG(1, "Unregistered link address family operations %u\n", in rtnl_link_af_unregister()
354 * Compare af data for a link address family
357 * @arg family af data family
360 * a and b of family given by arg family
362 * @return 0 if address family specific data matches or is not present
366 int family) in rtnl_link_af_data_compare() argument
371 if (!a->l_af_data[family] && !b->l_af_data[family]) in rtnl_link_af_data_compare()
374 if (!a->l_af_data[family] || !b->l_af_data[family]) in rtnl_link_af_data_compare()
377 af_ops = rtnl_link_af_ops_lookup(family); in rtnl_link_af_data_compare()
386 ret = af_ops->ao_compare(a, b, family, ~0, 0); in rtnl_link_af_data_compare()