Re: [NTDEV]Driver design issues for 2000; DMA zero le- ngth transfers . ..

I do, except I add an else clause that does
pDmaAdapter->AllocateAdapterChannel(…). Access to the device must to be
serialized whether or not TransferLength is zero. The DPC routine then
requires the same check of TransferLength to see if PutScatterGatherList
must be called.

Walter makes reference to deciding if you can use Get/PutScatterGatherList,
but doesn’t go into detail as to when you can’t. This may be one of the
situations to which he was referring.

Gary

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Monday, April 02, 2001 2:04 PM
To: NT Developers Interest List
Subject: [ntdev] Re: [NTDEV]Driver design issues for
2000; DMA zero length transfers . …

I have a need to do a zero length transfer when using
> DmaOperations->GetScatterGatherList. Thus far, the methods
I have used
have
> resulted in rejections, most often by Driver Verifier.

Strange question a bit. Why not have

if( TransferLength != 0 )
{
pDmaAdapter->GetScatterGatherList(…);
}

Max


You are currently subscribed to ntdev as:
xxxxx@delphieng.com
To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com