From owner-freebsd-hackers Tue Feb 18 00:58:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA14426 for hackers-outgoing; Tue, 18 Feb 1997 00:58:25 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA14415 for ; Tue, 18 Feb 1997 00:58:20 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.3/8.6.9) id TAA02058; Tue, 18 Feb 1997 19:51:17 +1100 Date: Tue, 18 Feb 1997 19:51:17 +1100 From: Bruce Evans Message-Id: <199702180851.TAA02058@godzilla.zeta.org.au> To: kuku@gilberto.physik.rwth-aachen.de, thorpej@nas.nasa.gov Subject: Re: ccd and bounce buffers Cc: freebsd-hackers@freefall.freebsd.org Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >So, maybe I'm missing how things work in the FreeBSD world, but what >on earth does bounce buffers have to do with the ccd? The ccd is >a layered driver, which knows nothing about the underlying component >(or, at least, that's how it's _supposed_ to work, and is how it works >in NetBSD). It didn't initialize cbp->cb_buf.b_bufsize, and the bounce buffer code depends on this being initialized since b_bcount might be modified by drivers. Buffers have a lot of hair, especially in FreeBSD, and it's not clear that anywhere outside of vfs_bio.c can know how how to initialize them Perhaps cb_buf should be copied from *bp and then modified. Bruce