Project

General

Profile

Actions

Feature #5354

open

200: DMA maps for SCSI commands

Added by Pavel Andrianov over 9 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
10/20/2014
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

Description

DMA map for SCSI command is created by the function int scsi_dma_map(struct scsi_cmnd *) if its first argument is a correct pointer to a structure of SCSI command. A DMA map is destroyed by function int scsi_dma_unmap(struct scsi_cmnd *). If scsi_dma_map returns zero, the scsi_dma_unmap is not necessary, but is not an error as well. The correct usage includes:
  • unmap only created maps;
  • create only one map for particular SCSI command;
  • cancel all created maps before shutdown of the module.

Sample bugfixes 25e8bc0, e70f61e

Actions

Also available in: Atom PDF