sgmap
struct scatterlist *s, *ps, *start_sg, *sgmap;
sgmap = sg;
sgmap, pages, need);
sgmap = sg_next(sgmap);
ret = dma_map_cont(dev, start_sg, i - start, sgmap, pages, need);
sgmap = sg_next(sgmap);
sgmap->dma_length = 0;
ret = aac_build_sg(cmd, (struct sgmap *)&srbcmd->sg);
static long aac_build_sg(struct scsi_cmnd *scsicmd, struct sgmap *sgmap);
static long aac_build_sg(struct scsi_cmnd *scsicmd, struct sgmap *psg)
struct sgmap sg; // Must be last in struct because it is variable
struct sgmap sg; // Must be last in struct because it is variable
struct sgmap sg;
+ sizeof(struct sgmap), GFP_KERNEL);
struct sgmap* psg = &srbcmd->sg;