Re: section objects and scatter/gather DMA
- From: "Don Burn" <burn@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 Feb 2009 20:09:01 -0500
If you are not sharing these with user space, why are you mucking with
Sections?
--
Don Burn (MVP, Windows DDK)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
"Charles Gardiner" <invalid@xxxxxxxxxxxxxxx> wrote in message
news:gnfl7k$5mq$01$1@xxxxxxxxxxxxxxxxxxxx
Hi,
can any body give me some tips/links on how to get scatter gather lists
to DMA into section objects?
In the WDK docu, I see
- I can use ZwCreateSection to generate the sections
- ZwMapViewOfSection to get part of the section mapped into my driver
address space.
But where do I go from here? I expect I have to do something with the
baseaddress and viewsize I send/get from the ZwMapViewOfSection call.
My situation is the following:
I have a number of incoming channels (from a PCIexpress card). Each
channel has multiplexed packets. I can have for instance:
CH1 : AABCBCBCABC
CH2 : ABCABCABCCC
CH3 : CBABBCCBAAB
I want to set up three section objects in my driver (well, really six so
I can do three circular buffers, one each for the A, B and C packets.
Not shared with user space) so that an application software can request
packets of just one type at a time but originally coming from any of the
channels (First loop vertically through the channels and then
horizontally). I would then use RtlCopyMemory or something similar to
copy for instance a number of packets of the requested type into the
IOCTL or ReadFile buffers from the application software.
A short example (or link to one) would be great. Ah yes, I'd like to use
as much KMDF functionality as possible.
Regards,
Charles
.
- Follow-Ups:
- Re: section objects and scatter/gather DMA
- From: Charles Gardiner
- Re: section objects and scatter/gather DMA
- References:
- section objects and scatter/gather DMA
- From: Charles Gardiner
- section objects and scatter/gather DMA
- Prev by Date: Re: Can I preinstall a driver for all USB ports at once ?
- Next by Date: Re: Can I preinstall a driver for all USB ports at once ?
- Previous by thread: section objects and scatter/gather DMA
- Next by thread: Re: section objects and scatter/gather DMA
- Index(es):
Relevant Pages
|