Lines Matching refs:af_ops
182 static struct rtnl_link_af_ops *af_ops[AF_MAX]; variable
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()
293 if (af_ops[ops->ao_family]) { in rtnl_link_af_register()
299 af_ops[ops->ao_family] = ops; in rtnl_link_af_register()
332 if (!af_ops[ops->ao_family]) { in rtnl_link_af_unregister()
342 af_ops[ops->ao_family] = NULL; in rtnl_link_af_unregister()
368 struct rtnl_link_af_ops *af_ops; in rtnl_link_af_data_compare() local
377 af_ops = rtnl_link_af_ops_lookup(family); in rtnl_link_af_data_compare()
378 if (!af_ops) in rtnl_link_af_data_compare()
381 if (af_ops->ao_compare == NULL) { in rtnl_link_af_data_compare()
386 ret = af_ops->ao_compare(a, b, family, ~0, 0); in rtnl_link_af_data_compare()
389 rtnl_link_af_ops_put(af_ops); in rtnl_link_af_data_compare()