Re: How does mmap work?

Tim Riker <[email protected]> Fri, 15 Aug 2003 09:48:34 -0500
Newsgroups gmane.comp.handhelds.zaurus.devel
Message-ID <[email protected]>
except that jffs2 is compressed, so you can't directly map anyway.

iirc mmap will return an error for any file on jffs2

one byte changes would still mean a block write. that could eat up flash 
quickly. large writes or even writev() would be much faster on jffs2.

Scott Thibault wrote:
> Hello,
> 
> I assume mmap just gives me a pointer to the actual memory location of a
> file, since files are all in memory anyway.  Is that correct?  So, I should
> be able to access files with zero memory usage and copying right (unless its
> on a card, of course), right?
> 
> --Scott Thibault
> AcroDesign Technologies
> http://www.acrodesigntech.com
> 
> _______________________________________________
> Zaurus-devel mailing list
> [email protected]
> http://lists.zaurus.com/mailman/listinfo/zaurus-devel


-- 
Tim Riker - http://rikers.org/ - [email protected]
Linux Technologist - [email protected] - http://www.TI.com/
BZFlag maintainer - http://BZFlag.org/ - for fun!