Wrapping a DMA buffer in .NET...

  • Thread starter Thread starter Mike DeKoker
  • Start date Start date
M

Mike DeKoker

Hello all. Here's the situation. I've got a physically contiguous, non-paged
buffer that I use to do DMA transfers between the host PC and a PCI device.
This buffer is allocated by a device driver and mapped into the user's
address space. My question is, how can I export this buffer so that it's
accessible through managed code. (i.e. I want C#, VB.NET, et al clients to
be able to access this buffer.)

I'm still getting my feet wet with this .NET thing, so I'm not quite sure
what direction to go. Is there some kind of custom allocator interface I can
use? Should I subclass System::Array? Is there something glaringly obvious
that I may have missed?

Thanks for your time.

Mike DeKoker
Software Engineer
Signatec, Inc.
 
You must use non-managed code to access the address, you can then store it
in a byte array and use it in your application.
Regards
 
Back
Top