From mboxrd@z Thu Jan 1 00:00:00 1970 From: ksashtekar@gmail.com (Kaustubh Ashtekar) Date: Tue, 7 Jun 2011 12:14:11 +0530 Subject: mmap on a block device In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Done. mmap was successful. 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. BR, Kaustubh On Tue, Jun 7, 2011 at 11:47 AM, Rajat Sharma wrote: > yes its fairly possible, go ahead and try it. > > On Tue, Jun 7, 2011 at 9:57 AM, Kaustubh Ashtekar > wrote: > > Hello All, > > Is it possible to mmap on a block device? I am writing my own kernel > space > > filesystem on Linux (academic project). I am writing a user space tool to > > format the block device (again my own ramdisk driver). It would be much > > simpler if I could just mmap the block device into my address space. > > -Kaustubh > > _______________________________________________ > > Kernelnewbies mailing list > > Kernelnewbies at kernelnewbies.org > > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110607/0567cf86/attachment.html