Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 1998 17:02:07 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Greg Lehey <grog@lemis.com>
Cc:        Mike Smith <mike@smith.net.au>, "Justin T. Gibbs" <gibbs@plutotech.com>, hackers@FreeBSD.ORG
Subject:   Re: New SoftUpdates test kit 
Message-ID:  <199802240102.RAA13122@dingo.cdrom.com>
In-Reply-To: Your message of "Tue, 24 Feb 1998 11:23:04 %2B1030." <19980224112304.63148@freebie.lemis.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Wouldn't it make more sense to pass around an extended buf structure,
> as ccd and vinum do?  Put the buf at the start, and you can pass it to
> all the routines that normally hand buf structures:

No.  You can't do this in a device driver - you're handed a buf by 
someone else, and you give it back when you're done. 

The problem is that the connection (in the wfd driver) between being 
given the buf and handing it back involves passing the buf pointer to 
someone else.

To do this with a wrapper as you propose would involve copying the buf 
into the wrapper and then out again.  Bleagh.  And you'd still have to 
manage memory for the wrappers.  Bleagh again.

The real killer is that there's no universal fragmenting layer sitting 
on top of device drivers.  Another mark for the SLICE stuff.

-- 
\\  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802240102.RAA13122>