From owner-freebsd-bugs Fri Jul 14 23:50: 4 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id BDAF937C497 for ; Fri, 14 Jul 2000 23:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id XAA99383; Fri, 14 Jul 2000 23:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Fri, 14 Jul 2000 23:50:02 -0700 (PDT) Message-Id: <200007150650.XAA99383@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Alfred Perlstein Subject: Re: kern/19866: The mbuf subsystem presently uses a horrible referencing scheme for external Reply-To: Alfred Perlstein Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/19866; it has been noted by GNATS. From: Alfred Perlstein To: freebsd-gnats-submit@FreeBSD.org Cc: bmilekic@technokratis.com Subject: Re: kern/19866: The mbuf subsystem presently uses a horrible referencing scheme for external Date: Fri, 14 Jul 2000 23:44:33 -0700 This is not how it should be done. Instead of keeping them in a linked list there should be an int/char * in the mbuf header that works the same way mclrefcnt does. Instead of managing a linked list all one has to do is copy the pointer into the new mbuf header and increment it, and decrease it on free, when it's zero the deref code is called. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message