Re: usbmon and scatter-gather

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

 



On Wed, 21 Oct 2009, Pete Zaitcev wrote:

> On Wed, 21 Oct 2009 11:22:42 -0400 (EDT), Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> 
> > I was looking into adapting usbmon to handle URBs with scatter-gather
> > lists.  How to do it isn't obvious.  In particular, what should happen
> > if some of the sg buffers are in addressable memory and some aren't?
> 
> My first instinct is just return an error 'D', all or nothing.
> 
> How soon do you want this? If couple of weeks are ok, I can swing it.

I can do it, if it's okay with you.  I just wondered how you wanted to 
handle these corner cases.  (I've got a patch adding s-g support to 
ehci-hcd, and not having usbmon available would be a big drawback.)

Another possibility is to return an initial segment of the data, up to 
the first non-addressable buffer.  Would that work?  I don't know if 
usbmon can handle storing a partial (> 0 but < transfer_buffer_length) 
data block.

Alan Stern

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

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux