I have a few doubts regarding its implementation.
Does MMAP provide a mapping of a file and returns a pointer of that location in physical memory or it returns with an address of the mapping table? and does it allocate and lock space for that file too ?
Once the file is stored on that location in memory, does it stay there till munmap is called ?
Is the file even moved to memory or is it just a mapping table that serves as a redirection and the file is actually in the virtual memory -(disk) ?
Assuming it is moved to memory, can other processes access that space to read data if they have a the address ?