From: "Adrian Hoe" <byhoe@greenlime.com>
Subject: Re: POSIX.Memory_Mapping.Map_Memory
Date: 26 Feb 2005 22:59:30 -0800
Date: 2005-02-26T22:59:30-08:00 [thread overview]
Message-ID: <1109487570.008408.193130@f14g2000cwb.googlegroups.com> (raw)
In-Reply-To: <87u0oykawh.fsf@deneb.enyo.de>
Florian Weimer wrote:
> * Mark Lorenzen:
>
> >> I was just wondering: Is it allowed to map a device file as shared
> >> memory? Try to use MAP_PRIVATE instead of MAP_SHARED.
> >
> > Furthermore: I do not think that it is possible to map character
> > special files, since it only allows sequential access. You can
> > probably only map block special files.
>
> It's possible to map /dev/zero. In fact, there is little difference
> between character and block devices these days.
Just for the purpose of recording for people who may need this in the
future:
I've successfully mapped the memory with
POSIX.Memory_Mapping.Map_Memory.
The VIDIOCGMBUF ioctl has to be issued before Map_Memory. This ioctl
reports the size of buffer to Memory_Map and the offset within the
buffer for each frame.
My application is far from completion but I have resolved this
Memory_Map issue. I believe the wheel has just started rolling again.
:-)
Regards,
--
Adrian Hoe
next prev parent reply other threads:[~2005-02-27 6:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-29 15:58 POSIX.Memory_Mapping.Map_Memory Adrian Hoe
2005-01-29 16:20 ` POSIX.Memory_Mapping.Map_Memory Mark Lorenzen
2005-01-29 16:31 ` POSIX.Memory_Mapping.Map_Memory Adrian Hoe
2005-01-29 18:44 ` POSIX.Memory_Mapping.Map_Memory Mark Lorenzen
2005-01-30 2:45 ` POSIX.Memory_Mapping.Map_Memory Adrian Hoe
2005-01-30 2:48 ` POSIX.Memory_Mapping.Map_Memory Adrian Hoe
2005-01-30 15:39 ` POSIX.Memory_Mapping.Map_Memory Mark Lorenzen
2005-01-30 16:02 ` POSIX.Memory_Mapping.Map_Memory Adrian Hoe
2005-01-30 16:19 ` POSIX.Memory_Mapping.Map_Memory Mark Lorenzen
2005-01-30 16:36 ` POSIX.Memory_Mapping.Map_Memory Mark Lorenzen
2005-01-30 18:51 ` POSIX.Memory_Mapping.Map_Memory Florian Weimer
2005-02-27 6:59 ` Adrian Hoe [this message]
2005-02-27 13:03 ` POSIX.Memory_Mapping.Map_Memory Mark Lorenzen
2005-01-30 16:05 ` POSIX.Memory_Mapping.Map_Memory Adrian Hoe
2005-01-30 16:22 ` POSIX.Memory_Mapping.Map_Memory Mark Lorenzen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox