Logo Search packages:      
Sourcecode: libnl version File versions  Download package

int rtnl_class_register ( struct rtnl_class_ops ops  ) 

Register a class module

  • ops class module operations

Definition at line 62 of file class.c.

References rtnl_class_ops::co_kind, and rtnl_class_ops::co_next.

{
      struct rtnl_class_ops *o, **op;

      if (!ops->co_kind[0])
            BUG();

      for (op = &class_ops_list; (o = *op) != NULL; op = &o->co_next)
            if (!strcasecmp(ops->co_kind, o->co_kind))
                  return nl_errno(EEXIST);

      ops->co_next = NULL;
      *op = ops;

      return 0;
}


Generated by  Doxygen 1.6.0   Back to index