Function swbus_rxq_init

Function Documentation

struct pcqueue * swbus_rxq_init (struct swbus *swb, void *buf_p, uint32_t n_entries) RCSW_WUR

Allocate and initialize a receive queue.

Parameters:
  • swb – The swb handle.

  • buf_p – Space for the rxq entries. Can be NULL (swb will malloc() for space).

  • n_entries – Max # of entries for rxq.

Returns:

Pointer to new receive queue, or NULL if an error occurred.