DragonFly-2.3.0.645.gecd27a2 master share/man/man3 queue.3 sys/dev/crypto/ubsec ubsec.c sys/dev/drm drm_drv.c sys/kern subr_rman.c sys/netgraph/ppp ng_ppp.c sys/sys queue.h rman.h

Peter Avalos pavalos at crater.dragonflybsd.org
Tue Apr 7 00:14:32 PDT 2009


commit ecd27a2e8c77bf6d392a35dc4a7356b54a00584b
Author: Peter Avalos <pavalos at theshell.com>
Date:   Sat Mar 14 20:58:33 2009 -1000

    Sync sys/queue.h with FreeBSD:
    
    * Introduce REMOVE_NEXT() macro's for SLIST and STAILQ.
    
    * Add sanity checking for QUEUE(3) TAILQs and LISTs under
    INVARIANTS.  Races may lead to list corruption, which can be
    difficult to unravel in a post-mortem analysis.  These checks verify
    that the prev and next pointers are consistent when inserting or
    removing elements, thus catching any corruption earlier.
    
    * Use TRASHIT to break LIST and SLIST link pointers on element removal.
    
    * Add more _FOREACH_MUTABLEs. Note: FreeBSD and NetBSD call these _SAFE,
    but _MUTABLE is a better name, so that's what we're using.
    
    * Add a macro for SLIST traversal 'SLIST_FOREACH_PREVPTR',
    this macro keeps a pointer to the previous element's next
    pointer to allow for search and O(1) removal.
    
    * Remove CIRCLEQs and replace them with TAILQs.

Summary of changes:
 share/man/man3/queue.3       |  373 +++++++++++++-----------------------------
 sys/dev/crypto/ubsec/ubsec.c |   22 ++--
 sys/dev/drm/drm_drv.c        |    2 +-
 sys/kern/subr_rman.c         |   78 ++++-----
 sys/netgraph/ppp/ng_ppp.c    |   69 ++++----
 sys/sys/queue.h              |  358 ++++++++++++++++++++++-------------------
 sys/sys/rman.h               |    4 +-
 7 files changed, 386 insertions(+), 520 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ecd27a2e8c77bf6d392a35dc4a7356b54a00584b


-- 
DragonFly BSD source repository





More information about the Commits mailing list