Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: [ata-scsi-dev] re-initing IODMACommand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ata-scsi-dev] re-initing IODMACommand



Alex --

I need some advice how to re-init the IODMACommand supplied by the IOSCSIParallelInterfaceController.

Our hardware can address up to 47 bits, and currently this is what we do:

if(localIODMACommand && (transferDir != kSCSIDataTransfer_NoDataTransfer)){
localIODMACommand->initWithSpecification (kIODMACommandOutputHost64 ,47,0,IODMACommand::kMapped,0,1);
IOresult=localIODMACommand->prepare(bufferOffset,bytesLeft)
}

You should not need to do this. If you override InitializeDMACommand(), you set the descriptor up once and you're set.

However, we observe a memory leak, of size zalloc 256 per re-init.

You should not re-init the IODMACommand during the I/O.

-- Chris


------------------

6 Infinite Loop

M/S 306-2MS

Cupertino CA 95014

phone: (408) 974-4033

fax:   (408) 862-7577

email: email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Ata-scsi-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >[ata-scsi-dev] re-initing IODMACommand (From: Alexander von Below <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.