Opening and operating on shared memory devices