Function swbus_publish_reserve

Function Documentation

status_t swbus_publish_reserve(struct swbus *swb, struct swbus_rsrvn *res, size_t pkt_size)

Reserve a buffer on a swbus instance.

A suitable buffer will be found in the first pool large enough to contain the packet and has free space.

Parameters:
  • swb – The swb handle.

  • res – The reservation for the publish (to be filled on success).

  • pkt_size – Size of the packet in bytes.

Returns:

status_t.