Alignment of disk-I/O from userland.

Bruce M Simpson bms at spc.org
Tue Oct 7 09:02:46 PDT 2003


On Tue, Oct 07, 2003 at 09:41:17AM -0600, Ben Mesander wrote:
> How about a flag for open(2), such as O_DIRECT, which would indicate
> if the fd in question is such a device, and you did not sufficiently
> align, etc. your buffers, then you get an error when you attempt the
> I/O operation.

O_DIRECT is already used to indicate that the application wishes to bypass
the buffer cache.

I think Scott's proposal, that the busdma API gets re-used, creating bounce
buffers where necessary, makes sense.

I think that if phk intends to 'raise the bar', he'd better be buying the
drinks at EuroBSDCon. :-)

BMS


More information about the freebsd-arch mailing list