Re: Infrastructure for zerocopy I/O

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

 



On Tue, 2015-11-17 at 13:07 +0100, Steinar H. Gunderson wrote:
> On Mon, Nov 16, 2015 at 03:22:06PM -0500, Alan Stern wrote:
> > 	Check that userspace requested zerocopy (otherwise the user 
> > 	program might try to access other data stored in the same cache 
> > 	lines as the buffer while the I/O is in progres);
> 
> Needed for send only, right? For receive, I guess you're not allowed to
> modify the buffer while the transfer is going on anyway.

No, send is the harmless case. You just make sure the cache is flushed.
For receive the issue is that touching memory next to the memory used
as buffer can alter the buffer. The buffer itself is a clear issue.

	Regards
		Oliver


--
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