From owner-freebsd-hackers Sun Feb 22 16:37:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA11961 for freebsd-hackers-outgoing; Sun, 22 Feb 1998 16:37:14 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA11942 for ; Sun, 22 Feb 1998 16:37:06 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id QAA08989; Sun, 22 Feb 1998 16:34:40 -0800 (PST) Message-Id: <199802230034.QAA08989@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Justin T. Gibbs" cc: Mike Smith , Greg Lehey , hackers@FreeBSD.ORG Subject: Re: New SoftUpdates test kit In-reply-to: Your message of "Sun, 22 Feb 1998 17:19:08 MST." <199802230022.RAA20633@pluto.plutotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 22 Feb 1998 16:34:40 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >Ugh. How else is a driver supposed to attach extra information to a > >buf or group of bufs? The b_driver field was the only clean way I > >could implement request fragmentation in the wfd driver. > > >From taking a 2 second look at the code, it seems that the problem is > that you are attempting to store information in struct buf that should > really be encapsulated in the atapi equivalent of "scsi_xfer" or as it > is in CAM, the CCB. This structure would have a buf pointer in it. This means creating a new structure holding a buf reference and an single integer counter, and then managing memory allocation for this new structure type, and passing it around instead of the buf. You're right, it almost certainly is the "correct" solution, but not necessarily the simplest. *sigh* -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message