Wrapping a DMA buffer in .NET...

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.
 
O

Omar Salinas

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top