[vlc-devel] [PATCH] v4l/v4l2: add mmap() fall back for nommu systems

Antoine Cellerier dionoea at videolan.org
Fri Jan 9 13:21:34 CET 2009


On Fri, Jan 09, 2009, Mike Frysinger wrote:
> On Linux no-mmu systems, getting a shared mapping often results in failure.
> If the mmap() in v4l failed with MAP_SHARED, then fall back to MAP_PRIVATE.

I'm not really sure how MAP_PRIVATE works. According to the man page it
creates a private copy on write mapping. Won't that mean that the
original memory area doesn't get updated? Anyone else know those mmap()
arguments better?

Cheers,

-- 
Antoine Cellerier
dionoea



More information about the vlc-devel mailing list