Generic Hub Allocation/Deallocation Ports #1036
-
In the generic hub, where should the In the Additionally, is there an example deployment that uses the generic hub? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
To take a step back, Let us look at each port:
Typically, the hub sits on-top of a downlink/uplink stack (Framer, Deframer, StaticMemory, and Tcp driver) and it can be hooked-up in a similar fashion. We do not have an example of the hub, but I will see if I can look-up something. |
Beta Was this translation helpful? Give feedback.
To take a step back,
Fw::Buffer
wraps (but does not own) a buffer to hold data. It is our way of passingU8*
around without losing track of the size. The data in these buffers is owned by something else (component with stack memory,StaticMemory
component, andBufferManager
component. Thus the buffer must be returned to its source or memory will be leaked. This what the deallocates do.Let us look at each port:
dataOutAllocate
needed allocate a buffer for the data out port as we need a buffer to write things into. It will be returned/deallocated by a component later in the chain. This is usually hooked to theStaticMemory
component or theBufferManager
component.dataInDeallocate
is used…