Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
scsi_lib_dma.c File Reference
#include <linux/blkdev.h>
#include <linux/device.h>
#include <linux/export.h>
#include <linux/kernel.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>

Go to the source code of this file.


int scsi_dma_map (struct scsi_cmnd *cmd)
 EXPORT_SYMBOL (scsi_dma_map)
void scsi_dma_unmap (struct scsi_cmnd *cmd)
 EXPORT_SYMBOL (scsi_dma_unmap)

Function Documentation

EXPORT_SYMBOL ( scsi_dma_map  )
EXPORT_SYMBOL ( scsi_dma_unmap  )
int scsi_dma_map ( struct scsi_cmnd cmd)

scsi_dma_map - perform DMA mapping against command's sg lists : scsi command

Returns the number of sg lists actually used, zero if the sg lists is NULL, or -ENOMEM if the mapping failed.

Definition at line 22 of file scsi_lib_dma.c.

void scsi_dma_unmap ( struct scsi_cmnd cmd)

scsi_dma_unmap - unmap command's sg lists mapped by scsi_dma_map : scsi command

Definition at line 42 of file scsi_lib_dma.c.