Subqueue Package

Function List

The Subqueue package contains the following KPs.

  • op_subq_empty() Determines if the specified subqueue is empty of packets.
  • op_subq_flush() Flushes the specified subqueue, destroying any packets it contains.
  • op_subq_index_map() Converts an abstract subqueue selection index into an explicit subqueue index.
  • op_subq_pk_access() Obtains a pointer to a packet stored in the specified subqueue, at the specified subqueue position.
  • op_subq_pk_insert() Inserts the specified packet into the specified subqueue, at the specified position.
  • op_subq_pk_remove() Obtains a pointer to a packet stored in the specified subqueue at the specified position, and removes the packet from the subqueue.
  • op_subq_pk_swap() Exchanges the packets at the two specified positions within the specified subqueue.
  • op_subq_print() Prints the packet contents of the specified subqueue onto the standard output device.
  • op_subq_sort() Sorts the specified subqueue according to the priority property associated with each packet.
  • op_subq_stat() Obtains the value of a statistic which is automatically computed by the surrounding queue; the statistic pertains to the specified subqueue, rather than the queue as a whole.

See Package Overview for a general description of this package.