entry and allocation for mmap in appmemk