title: Which bytes of the file remain mapped?
body: <p>A file is mapped with the the system call: </p>
  
  <pre><code>mmap(65536, 32768, READ, FLAGS, fd, 0)
  </code></pre>
  
  <p>Pages are 8 KB, so 4 pages worth of the file were mapped (32768/8k = 4 pages). Then the following call is carried out: </p>
  
  <pre><code>munmap(65536, 8192)
  </code></pre>
  
  <p>Which removes the specified part of the memory map. Which bytes of the file remain mapped? The answer key says that pages 2 and 3 remain, so only bytes 16384 through 32767 remain; however, I'm not sure this is right. Since the <code>len</code> argument (second arg) of the <code>munmap</code> command is 8192 byes, shouldn't only page 0 be removed, leaving bytes 8192 through 32767?</p>