Done. mmap was successful.<div><br></div><div>Is it a good idea to mmap a block device. A block device being much bigger than the available virtual address space, I will have to map it multiple times while working on various parts of the block device. </div>
<div><br></div><div>BR,<br>Kaustubh<br><br><div class="gmail_quote">On Tue, Jun 7, 2011 at 11:47 AM, Rajat Sharma <span dir="ltr"><<a href="mailto:fs.rajat@gmail.com">fs.rajat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
yes its fairly possible, go ahead and try it.<br>
<div><div></div><div class="h5"><br>
On Tue, Jun 7, 2011 at 9:57 AM, Kaustubh Ashtekar <<a href="mailto:ksashtekar@gmail.com">ksashtekar@gmail.com</a>> wrote:<br>
> Hello All,<br>
> Is it possible to mmap on a block device? I am writing my own kernel space<br>
> filesystem on Linux (academic project). I am writing a user space tool to<br>
> format the block device (again my own ramdisk driver). It would be much<br>
> simpler if I could just mmap the block device into my address space.<br>
> -Kaustubh<br>
</div></div>> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
><br>
</blockquote></div><br></div>