Access to driver memory using C#

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

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
 
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
 
Back
Top