Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2002 10:18:28 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        Poul-Henning Kamp <phk@freebsd.org>
Cc:        arch@freebsd.org
Subject:   Re: Trivial mbuf patch for review.
Message-ID:  <Pine.BSF.4.21.0209181015070.4727-100000@InterJet.elischer.org>
In-Reply-To: <3185.1032361630@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 18 Sep 2002, Poul-Henning Kamp wrote:


a fair idea..
I think m_length could be a maco or an inline....
It's hardly worth a function call..

> -	for (n = control; n; n = n->m_next) {
> -		space += n->m_len;
> -		if (n->m_next == 0)	/* keep pointer to last control buf */
> -			break;
> -	}



> -    len = 0;
> -    for (m = m0; m != 0; m = m->m_next)
> -	len += m->m_len;
> +    len = m_length(m0, NULL);


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0209181015070.4727-100000>