Lines Matching refs:cops
38 int rtnl_cls_register(struct rtnl_cls_ops *cops) in rtnl_cls_register() argument
42 if (!cops->co_kind) in rtnl_cls_register()
46 if (!strcasecmp(cops->co_kind, o->co_kind)) in rtnl_cls_register()
49 cops->co_next = NULL; in rtnl_cls_register()
50 *op = cops; in rtnl_cls_register()
59 int rtnl_cls_unregister(struct rtnl_cls_ops *cops) in rtnl_cls_unregister() argument
64 if (!strcasecmp(cops->co_kind, o->co_kind)) in rtnl_cls_unregister()
70 *op = cops->co_next; in rtnl_cls_unregister()
77 struct rtnl_cls_ops *cops; in __rtnl_cls_lookup_ops() local
79 for (cops = cls_ops_list; cops; cops = cops->co_next) in __rtnl_cls_lookup_ops()
80 if (!strcmp(kind, cops->co_kind)) in __rtnl_cls_lookup_ops()
81 return cops; in __rtnl_cls_lookup_ops()