Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 2009 11:13:10 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/net if.c
Message-ID:  <200908261113.n7QBDSG0028651@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2009-08-26 11:13:10 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if.c 
  Log:
  SVN rev 196559 on 2009-08-26 11:13:10Z by rwatson
  
  Add IFNET_HOLD reserved pointer value for the ifindex ifnet array,
  which allows an index to be reserved for an ifnet without making
  the ifnet available for management operations.  Use this in if_alloc()
  while the ifnet lock is released between initial index allocation and
  completion of ifnet initialization.
  
  Add ifindex_free() to centralize the implementation of releasing an
  ifindex value.  Use in if_free() and if_vmove(), as well as when
  releasing a held index in if_alloc().
  
  Reviewed by:    bz
  MFC after:      3 days
  
  Revision  Changes    Path
  1.365     +39 -13    src/sys/net/if.c



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