title: Linux: How to enable Execute in place (XIP) for RAMFS/TMPFS
body: <p>I'm working on an embedded system where the <code>rootfs</code> is constructed in a <code>tmpfs</code> partition by the <code>init</code> process. After the <code>rootfs</code> is complete, it will do a pivot-root and start spawning processes located in the <code>rootfs</code>.</p>
  
  <p>But it seems like <code>XIP</code> is not working for our <code>tmpfs</code>, and all the applications is therefore loaded into ram twice (in the <code>tmpfs</code> and again into ram when loaded).</p>
  
  <p>Can this really be true? </p>
  
  <p>I found an old discussion thread at <a href="https://ez.analog.com/thread/45262" rel="noreferrer">https://ez.analog.com/thread/45262</a> which describe the same issue as I'm seeing.</p>
  
  <p>How can I achieve XIP for a file-system located in memory?</p>