Subject: Re: Oddity in physio()
To: Jason R Thorpe <email@example.com>
From: Mike Cheponis <mac@Wireless.Com>
Date: 05/29/2001 09:01:21
This is why I prefer using "in" and "out" to refer to I/O operations. -Mike
On Tue, 29 May 2001, Jason R Thorpe wrote:
> Date: Tue, 29 May 2001 08:12:57 -0700
> From: Jason R Thorpe <firstname.lastname@example.org>
> To: Ben Harris <email@example.com>
> Cc: firstname.lastname@example.org
> Subject: Re: Oddity in physio()
> On Tue, May 29, 2001 at 02:03:17PM +0100, Ben Harris wrote:
> > error = uvm_vslock(p, bp->b_data, todo,
> > (flags & B_READ) ?
> > VM_PROT_READ | VM_PROT_WRITE :
> > VM_PROT_READ);
> > Am I missing something really obvious, or is that B_READ test backwards?
> A "read" from a device is a "write" to memory. Similarly, a "write" to
> a device is a "read" from memory.
> -- Jason R. Thorpe <email@example.com>