comp.lang.ada
 help / color / mirror / Atom feed
From: Mark Lorenzen <mark.lorenzen@surfpost.dk>
Subject: Re: POSIX.Memory_Mapping.Map_Memory
Date: 27 Feb 2005 14:03:15 +0100
Date: 2005-02-27T14:03:15+01:00	[thread overview]
Message-ID: <m33bviupd8.fsf@0x535ddc7c.boanxx18.adsl-dhcp.tele.dk> (raw)
In-Reply-To: 1109487570.008408.193130@f14g2000cwb.googlegroups.com

"Adrian Hoe" <byhoe@greenlime.com> writes:

> 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

Thanks for the info. So we can fortunately conclude that the problem
is neither Ada nor Florist related, but is simply a special issue with
this type of device.

- Mark Lorenzen



  reply	other threads:[~2005-02-27 13:03 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                   ` POSIX.Memory_Mapping.Map_Memory Adrian Hoe
2005-02-27 13:03                     ` Mark Lorenzen [this message]
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