470,612 Members | 2,573 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,612 developers. It's quick & easy.

Access to driver memory using C#

Hello, I haven't found any answer on this - if it is possible or not.

I have a PCI card with a memory on it. I have also a driver (written in
C++) that maps the memory from the card to user mode - I need very fast
access to this memory, that's why I need to map it directly to my
program.

And now comes my problem - I want to write the control program in c#.

Is there any way how to access to the mapped memory? It is in user
space, I know its size in runtime (not in compile-time), I get its
address using IOCTL from the driver. Now I need to "map" it on Int32
array or something like that...

Martin

Apr 22 '06 #1
1 1659
Hello, Martin!

M> I have a PCI card with a memory on it. I have also a driver (written in
M> C++) that maps the memory from the card to user mode - I need very fast
M> access to this memory, that's why I need to map it directly to my
M> program.

M> And now comes my problem - I want to write the control program in c#.

M> Is there any way how to access to the mapped memory? It is in user
M> space, I know its size in runtime (not in compile-time), I get its
M> address using IOCTL from the driver. Now I need to "map" it on Int32
M> array or something like that...

IMO you can create a class, wrapper, that will handle I/O to that memory.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Apr 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by MTB | last post: by
2 posts views Thread by Stupid48 | last post: by
4 posts views Thread by Martin | last post: by
2 posts views Thread by =?Utf-8?B?c29jYXRvYQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.