Re: data buffer and scatter-gather

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

 



Hi,
Cmnd->use_sg gives the number of scatter gather
buffers. 
sg[i].length gives the length of the individual
scatter gather buffer. 
sg[i].address gets you to the actual address of teh
ith scatter gather element. 
These structures are defined in the Scsi Cmnd
structures. 
Sai





--- Tommaso Moroni <tommaso.m@xxxxxxxxxxxxx> wrote:

> Hi!
> 
> I'm writing a kernel module which, given a struct
> scsi_cmnd, processes the
> data involved in the command. If use_sg is 0, I
> access the data with buffer and
> bufflen.
> 
> How can I do access the data when scatter-gather is
> used (when use_sg != 0) ?
> 
> 
> Thank you in advance,
> Tommaso
> 
> --
> Kernelnewbies: Help each other learn about the Linux
> kernel.
> Archive:      
> http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux