Function TRTSERVER_ServerSharedMemoryAddress

Function Documentation

TRTSERVER_Error *TRTSERVER_ServerSharedMemoryAddress(TRTSERVER_Server *server, TRTSERVER_SharedMemoryBlock *shared_memory_block, size_t offset, size_t byte_size, void **base)

Get an address in a shared memory block that has been registered with the inference server.

Verify that a ‘byte_size’ block of memory starting at that address is completely contained within the shared memory block.


a TRTSERVER_Error indicating success or failure.

  • server: The inference server object.

  • shared_memory_block: The shared memory block.

  • offset: The offset within the shared memory block to get the address for.

  • byte_size: The size of block to within the shared memory block. Returns error if a block of this size (starting at ‘offset’) isn’t completely contained in the shared memory block.

  • base: Returns the base address.