Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jan 2003 13:16:50 -0800 (PST)
From:      Andrew Gallatin <gallatin@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_mbuf.c src/sys/sys mbuf.h
Message-ID:  <200301022116.h02LGo2N033186@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
gallatin    2003/01/02 13:16:50 PST

  Modified files:
    sys/kern             subr_mbuf.c 
    sys/sys              mbuf.h 
  Log:
  o Introduce a new external mbuf type, EXT_EXTREF.
  
  o Allow callers of m_extadd() to allocate their own reference
  m_ext.ref_cnt pointer, rather than having the mbuf system allocate it
  with a malloc() in the critical path.  This speeds m_extadd() up, and
  also simplifies locking (malloc() may need Giant).
  
  A driver or subsystem wishing to take use its own ref counter must
  initialize m_ext.ref_cnt to point to its ref counter prior to
  calling m_extadd(), and it must use EXT_EXTREF as its external type.
  
  Eg:
           m->m_ext.ref_cnt =  my_ref_cnt_ptr;
           m_extadd(.....,EXT_EXTREF);
  
  Reviewed by: bosko
  
  Revision  Changes    Path
  1.35      +8 -3      src/sys/kern/subr_mbuf.c
  1.110     +1 -0      src/sys/sys/mbuf.h

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




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