mmfile_t ptr should be const.