I have my doubts about reading /dev/mem.
I have a c code called map.c that allocates a chunk of memory using mmap function on linux. The chunk size is 4096. The code