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

int rtnl_qdisc_prio_get_bands ( struct rtnl_qdisc *  qdisc  ) 

Get number of bands of PRIO qdisc.

  • qdisc PRIO qdisc.
    Number of bands or a negative error code.

Definition at line 182 of file prio.c.

References prio_qdisc().

      struct rtnl_prio *prio;

      prio = prio_qdisc(qdisc);
      if (prio && prio->qp_mask & SCH_PRIO_ATTR_BANDS)
            return prio->qp_bands;
            return -NLE_NOMEM;

Generated by  Doxygen 1.6.0   Back to index