Lines Matching defs:cops
35 * @arg cops class module operations
37 int rtnl_class_register(struct rtnl_class_ops *cops)
41 if (!cops->co_kind[0])
45 if (!strcasecmp(cops->co_kind, o->co_kind))
48 cops->co_next = NULL;
49 *op = cops;
56 * @arg cops class module operations
58 int rtnl_class_unregister(struct rtnl_class_ops *cops)
63 if (!strcasecmp(cops->co_kind, o->co_kind))
69 *op = cops->co_next;
76 struct rtnl_class_ops *cops;
78 for (cops = class_ops_list; cops; cops = cops->co_next)
79 if (!strcmp(kind, cops->co_kind))
80 return cops;