From owner-cvs-all Sat Jul 4 23:34:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA26148 for cvs-all-outgoing; Sat, 4 Jul 1998 23:34:51 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id XAA26139; Sat, 4 Jul 1998 23:34:46 -0700 (PDT) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0ysiNp-0006X0-00; Sun, 5 Jul 1998 00:34:45 -0600 Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.8.8/8.8.3) with ESMTP id AAA28851; Sun, 5 Jul 1998 00:35:49 -0600 (MDT) Message-Id: <199807050635.AAA28851@harmony.village.org> To: Greg Lehey Subject: Re: Don't malloc buf headers (was: cvs commit: src/sys/dev/vn vn.c) Cc: Bruce Evans , cvs-committers@FreeBSD.ORG, julian@FreeBSD.ORG In-reply-to: Your message of "Sun, 05 Jul 1998 14:35:40 +0930." <19980705143540.B18970@freebie.lemis.com> References: <19980705143540.B18970@freebie.lemis.com> <199807040841.SAA31111@godzilla.zeta.org.au> Date: Sun, 05 Jul 1998 00:35:49 -0600 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk In message <19980705143540.B18970@freebie.lemis.com> Greg Lehey writes: : at the end. If this isn't kosher, what method should I use? Hmmm, Solaris has getrbuf(9f) for this sort of thing, but the Solaris DDI/DDK is somewhat weak on "super" buffer operations. I kinda like this. getrbuf says, for those not familiar, get me a buffer header that I can call my own. The driver has more freedom with these bufs than it does with other bufs passed to it in strategy. Maybe not the best way to go, but it is existing practice. A centralized way of doing this would help reduce the number of places that need to change when struct buf changes. It is one of the most fundamental structures to Unix, yet it is radically different on every system I've looked at. Well, besides the old fields, that is... Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message