Subject: Re: SoC ideas - mbuf API
To: Pavel Cahyna <pavel@netbsd.org>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-net
Date: 06/27/2006 16:25:51
On Jun 27, 2006, at 4:19 PM, Pavel Cahyna wrote:

> Isn't it mostly what I have proposed? I have proposed mptr_rw  
> returning
> writable pointer, and mptr... returning const pointer.
>
> A difference is that the proposed macros would also do the cast to the
> required data type, to be more similar to the current mtod() and at  
> the
> same time to be able to use sizeof on this type.

You proposed macros, which I don't like so much for this.  I would  
also rather pass in a real length, rather than using sizeof magic  
inside the macro itself.

I also would prefer different names other than mptr*().  I'm not  
really much of a fan of the current m_*() names either :-)

-- thorpej