[fixed] Re: functions order when do memory mapping



Ronald wrote:
A:
open
mmap
do io here
munmap
close

or

B:
open
mmap
close
do io here
munmap

Both works well, I wonder which is better?
.