pmem: implementation of pmem_map()