<div dir="ltr"><div style="font-size:12.8000001907349px">Hi I have a PCI based card which have few RAM on it.<br></div><span style="font-size:12.8000001907349px">I have to copy the text file to RAM and read it too.</span><br><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Actually i want my pci device to be exposed as block device and then mount file system on it.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 2, 2015 at 6:59 AM, Greg KH <span dir="ltr">&lt;<a href="mailto:gregkh@linuxfoundation.org" target="_blank">gregkh@linuxfoundation.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Jun 01, 2015 at 10:55:44PM +0530, Robert Clove wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I have a pci card that has some amount of ram and flash memory on it.<br>
<br>
</span>What kind of card?<br>
<span class=""><br>
&gt; I have found the bar address range for the memory.<br>
&gt; I want to transfer a file to that memory and read from that memory.<br>
<br>
</span>PCI card memory are not usually set up as a filesystem, how can you copy<br>
a file to it?<br>
<span class=""><br>
&gt; Any pointers(in terms of sample code) how can i do that?<br>
<br>
</span>Why do you want to do this?  What exactly are you trying to solve here?<br>
<br>
greg k-h<br>
</blockquote></div><br></div>