Bosko Milekic writes:
 > On Mon, Nov 25, 2002 at 08:13:46PM -0500, Andrew Gallatin wrote:
 > >  >   It is not out of date.  The code means:
 > >  > 
 > >  >   "If you've given me a counter then I'll use it otherwise I'll try to
 > >  >   allocate one with malloc()."
 > > 
 > > Ah, duh.  Thanks.  I'd better start providing one in my driver then..
 >   Again, if you're just using regular mbuf clusters (of the 2K variety)
 >   you don't need to because mb_alloc will do it for you.  If you're
 >   using a third-party buffer (e.g., jumbo buf) then you can if you want
 >   to but make sure it's not something that requires freeing afterwords
 >   (in other words, only do it if you do the exact same thing mb_alloc
 >   does for regular clusters because otherwise you'll have to worry
 >   about destructing the counter before freeing the mbuf).

I'm just tuning up my driver now to catch up to the "recent" interface
changes.  While there, I went to add a ref count for my driver managed
M_EXT clusters.  However, m_extadd() does not take a parameter for
assignment into mp->m_ext.ref_cnt Eg, I cannot call m_extadd() if I
want to use my own refcounter.

Is there any chance this could be fixed?  O/w, I'll have to
avoid calling m_extadd()..



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to