From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 11 19:09:46 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64C6D37B401; Mon, 11 Aug 2003 19:09:46 -0700 (PDT) Received: from smtp5.andrew.cmu.edu (SMTP5.andrew.cmu.edu [128.2.10.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BA5C43F75; Mon, 11 Aug 2003 19:09:43 -0700 (PDT) (envelope-from eno@andrew.cmu.edu) Received: from andrew.cmu.edu (BLISS.PDL.CMU.EDU [128.2.134.47]) (user=eno mech=PLAIN (0 bits))h7C29guO012819 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Mon, 11 Aug 2003 22:09:42 -0400 Message-ID: <3F384C66.6060205@andrew.cmu.edu> Date: Mon, 11 Aug 2003 22:09:42 -0400 From: Eno Thereska User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: phk@FreeBSD.ORG, freebsd hackers Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: getting from bio to buf in dastrategy() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2003 02:09:46 -0000 Hi, >To: Eno Thereska >Date: Mon, 04 Aug 2003 07:43:44 +0200 >In message <3F2D96AB.9000607@andrew.cmu.edu>, Eno Thereska writes: >>Hi all, >> >>I am hacking into the FreeBSD 5.0 code. >>I jumped from using 4.4 to 5.0 and a couple of things >>have changed. Here is my question: >> >>in /sys/cam/scsi/scsi_da.c the dastrategy() >>function takes as an argument "struct bio* bp" >>Now I need to get to the "struct *buf" that bp >>belongs to. >You can't do that, there may not be any struct buf. How can a bio exist on it's own, unrelated to any buf? Would that be a special case or does that happen all the time? A concrete example would help. Thanks Eno