Function swbus_publish_release

Function Documentation

status_t swbus_publish_release(struct swbus *swb, uint32_t pid, struct swbus_rsrvn *res, size_t pkt_size)

Release a published entry (i.e. send it to all subscribed receive queues).

If a given receive queue is full, ERROR will be returned, but the bus will still attempt to publish to the remaining queues. If the application takes on the task of synchronization/allocating memory for very large packets, then this function can be called directly, avoiding a potentially expensive memory copy.

Parameters:
  • swb – The swb handle.

  • pid – The packet ID.

  • res – The space reserved for the packet in a particular buffer pool. The pointed-to value must have been the result of a successful swbus_publish_reserve().

  • pkt_size – Size of the packet in bytes.

Returns:

status_t.