Function swbus_rxq_wait

Function Documentation

struct swbus_rxq_ent * swbus_rxq_wait (struct swbus *swb, struct pcqueue *queue) RCSW_WUR

Wait (indefinitely) until the given receive queue is not empty, returning a reference to the first item in the queue.

Regardless of how the packet was published, you need to call swbus_rxq_pop_front() when you are finished with the packet.

Parameters:
  • swb – The swb handle.

  • queue – The receive queue to wait on.

Returns:

A reference to the first item in the queue, or NULL if an ERROR occurred.