Struct swbus_rsrvn
Defined in File swbus.h
Struct Documentation
-
struct swbus_rsrvn
A reservation which can later be used to publish some data.
Can be used in 3 ways:
Internally when swbus_publish() is called by the API.
Received by the application when swbus_publish_reserve() is called, and should eventually be passed to swbus_publish_release(). Reservation is good indefinitely.
Manually created by the application with swbus_rsrvn::data pointing to data the application is already filling to avoid the mempy() which happens if you just swbus_publish() directly. In this case swbus_rsrvn::bp should be NULL.
All of the swbus_rxq_XX() functions can be used regardless of which way is chosen.