Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2003 17:02:31 +0100
From:      Bruce M Simpson <bms@spc.org>
To:        Ben Mesander <ben@timing.com>
Cc:        arch@freebsd.org
Subject:   Re: Alignment of disk-I/O from userland.
Message-ID:  <20031007160231.GB73063@saboteur.dek.spc.org>
In-Reply-To: <16258.56989.685473.900678@piglet.timing.com>
References:  <200310061753.28562.sam@errno.com> <32324.1065508157@critter.freebsd.dk> <16258.56989.685473.900678@piglet.timing.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031007160231.GB73063>