Lines Matching refs:cops
37 int rtnl_class_register(struct rtnl_class_ops *cops) in rtnl_class_register() argument
41 if (!cops->co_kind[0]) in rtnl_class_register()
45 if (!strcasecmp(cops->co_kind, o->co_kind)) in rtnl_class_register()
48 cops->co_next = NULL; in rtnl_class_register()
49 *op = cops; in rtnl_class_register()
58 int rtnl_class_unregister(struct rtnl_class_ops *cops) in rtnl_class_unregister() argument
63 if (!strcasecmp(cops->co_kind, o->co_kind)) in rtnl_class_unregister()
69 *op = cops->co_next; in rtnl_class_unregister()
76 struct rtnl_class_ops *cops; in __rtnl_class_lookup_ops() local
78 for (cops = class_ops_list; cops; cops = cops->co_next) in __rtnl_class_lookup_ops()
79 if (!strcmp(kind, cops->co_kind)) in __rtnl_class_lookup_ops()
80 return cops; in __rtnl_class_lookup_ops()