C: mmap failed: No such device
<p>I'm trying to create a memory map using the c commands</p>

<pre><code>  void* mem_map = mmap(NULL, 
                       sizeof(serverData),      //200000
                       PROT_READ | PROT_WRITE, 
                       MAP_SHARED, 
                       mem_map_fp, 
                       0);

  if(mem_map == MAP_FAILED){
    bail_out(EXIT_FAILURE, "mmap");
  }
</code></pre>

<p>The program compiles, but when trying to run the following error is produced:</p>

<pre><code>mmap: No such device
</code></pre>

<p>To my understanding there is nothing wrong with the code which makes me suspect that the reason might be a little more complex. 
I'm running this linux version:</p>

<pre><code>Linux ubuntu 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
</code></pre>