Static and Dynamic shared memory handling.
Gets a pointer to the dynamic shared memory that was allocated by the caller of the kernel. The data is left uninitialized.