Re: query regarding command conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/15/2009 01:56 PM, Prashant Bhole wrote:
> Hi,
> I have a SATA disk which is represented by node /dev/sdb.
> I opened that device using open_blk_excl() to perform IO from a kernel module.
> IO request is submitted using generic_make_request() which is in terms
> of struct bio.
> As per my knowledge LLDs do not deal with struct bio.
> 
> My question is, where does the struct bio to struct scatterlist
> conversion takes place
> before SCSI layer calls hostt->queuecommand()?
> 
> Thanks,

It is done in scsi_init_sgtable() scsi_lib.c. As part of scsi's prep_fn

Boaz
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux