[Mono-list] Mono.Unix.Native.Syscall.mmap().

Robert Jordan robertj at gmx.net
Tue Jul 31 06:52:18 EDT 2007


Hi,

Wyborski Marek wrote:
> Hi!
> 
>  
> 
> I am trying to map the Frambuffer /dev/fb0 with
> Mono.Unix.Native.Syscall.mmap(). As start-address the method needs an
> IntPtr. I don't understand why it isn't just an int with for example 0
> to start at the beginning? And when I receive the IntPtr from the

It's an IntPtr because it must be an int that is able to represent
a pointer. Just use IntPtr.Zero in this case. See "man mmap".

> function with the mapped memory I don't know how write to that space. I
> used Marshal.WriteByte() but It doesn't seem to work.
> 
>  
> 
> Unluckily the documentation for the Function is not available, so any
> help is appreciated!!

http://msdn2.microsoft.com/en-us/library/system.runtime.interopservices.marshal.writebyte.aspx

Robert



More information about the Mono-list mailing list