Sharing of memory between C and SV

In reply to Omkar:

how do you make the shared memory sustain its handle(pointer) and content between SV → c calls?