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

int rtnl_qdisc_unregister ( struct rtnl_qdisc_ops ops  ) 

Unregister a qdisc module

  • ops qdisc module operations

Definition at line 151 of file qdisc.c.

References rtnl_qdisc_ops::qo_kind, and rtnl_qdisc_ops::qo_next.

      struct rtnl_qdisc_ops *o, **op;

      for (op = &qdisc_ops_list; (o = *op) != NULL; op = &o->qo_next)
            if (!strcasecmp(ops->qo_kind, o->qo_kind))

      if (!o)
            return nl_errno(ENOENT);

      *op = ops->qo_next;

      return 0;

Generated by  Doxygen 1.6.0   Back to index