Function swbus_rxq_front
Defined in File swbus.h
Function Documentation
-
struct swbus_rxq_ent *swbus_rxq_front(struct pcqueue *const queue)
Get pointer to the top packet on a receive queue.
Use this function if a given RXQ is only subscribed to a single packet type, so there’s no ambiguity about what comes out of the queue in terms of what to do with it.
Note that if the queue is currently empty this function will wait until there’s something in it before returning.
- Returns:
The top of the queue, or NULL if no such packet or an error occurred.