void BSPLib::Classic::Get( uint32_t pid, const void *src, ptrdiff_t offset, void *dst, size_t nbytes ) // (1) Classic void bsp_get( uint32_t pid, const void *src, ptrdiff_t offset, void *dst, size_t nbytes ) // (2) Legacy
This operation get the registered memory of another processor and copies the
memory into its own memory. It gets a buffer of size
nbytes from source
src that is located in the processor with identifier
offset bytes from source pointer
src and stores it at the
- Classic BSP function, this is the interface one should prefer to use over the old BSP interface.
- Legacy BSP function, this interface is included for backwards compatibility with other BSP libraries.
pidThe processor identifier of the processor to communicate with.
srcPointer to the source of the information in the other processor.
offsetOffset from the source
srcin bytes to start reading from.
dstPointer to the destination for the information in the current processor.
nbytesNumber of bytes to read.
BSPLib::Begin()has been called.
src != nullptr.
dst != nullptr.
BSPLib::Push()has been called on
srcwith at least size
offset + nbytesin the processor with ID
BSPLib::Sync()has happened between
BSPLig::Push()and this call.
- Get request has been queued.
- In the next superstep
BSPLib::Sync(), the destination will have the copied value from the source.