From owner-cvs-all Thu Jul 5 7:35:43 2001 Delivered-To: cvs-all@freebsd.org Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by hub.freebsd.org (Postfix) with ESMTP id 076C537B401; Thu, 5 Jul 2001 07:35:37 -0700 (PDT) (envelope-from gibbs@scsiguy.com) Received: from scsiguy.com (localhost [127.0.0.1]) by aslan.scsiguy.com (8.11.2/8.9.3) with ESMTP id f65EZWU60519; Thu, 5 Jul 2001 08:35:32 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Message-Id: <200107051435.f65EZWU60519@aslan.scsiguy.com> To: Joerg Wunsch Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys bio.h In-Reply-To: Your message of "Tue, 03 Jul 2001 23:33:21 +0200." <20010703233321.C3398@uriah.heep.sax.de> Date: Thu, 05 Jul 2001 08:35:32 -0600 From: "Justin T. Gibbs" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >I don't need a private structure (i would have malloced it then), just >a few values in a private scalar variable/field (only a couple of >values would have sufficed for me, but bde pointed out that something >like the ATA driver might have use for more distinct values here). Why not use a union in bio for any "private use space" we care to put in it? This is what cam does: typedef union { void *ptr; u_long field; u_int8_t bytes[sizeof(void *) > sizeof(u_long) ? sizeof(void *) : sizeof(u_long)]; } ccb_priv_entry; -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message