cvs commit: src/sys/conf files src/sys/kern kern_mutex.c kern_sx.c subr_lock.c subr_witness.c src/sys/sys lock.h mutex.h

John Baldwin jhb at FreeBSD.org
Tue Jan 17 08:55:17 PST 2006


jhb         2006-01-17 16:55:17 UTC

  FreeBSD src repository

  Modified files:
    sys/conf             files 
    sys/kern             kern_mutex.c kern_sx.c subr_witness.c 
    sys/sys              lock.h mutex.h 
  Added files:
    sys/kern             subr_lock.c 
  Log:
  Add a new file (kern/subr_lock.c) for holding code related to struct
  lock_obj objects:
  - Add new lock_init() and lock_destroy() functions to setup and teardown
    lock_object objects including KTR logging and registering with WITNESS.
  - Move all the handling of LO_INITIALIZED out of witness and the various
    lock init functions into lock_init() and lock_destroy().
  - Remove the constants for static indices into the lock_classes[] array
    and change the code outside of subr_lock.c to use LOCK_CLASS to compare
    against a known lock class.
  - Move the 'show lock' ddb function and lock_classes[] array out of
    kern_mutex.c over to subr_lock.c.
  
  Revision  Changes    Path
  1.1084    +1 -0      src/sys/conf/files
  1.165     +28 -56    src/sys/kern/kern_mutex.c
  1.28      +3 -16     src/sys/kern/kern_sx.c
  1.1       +113 -0    src/sys/kern/subr_lock.c (new)
  1.211     +0 -8      src/sys/kern/subr_witness.c
  1.56      +8 -6      src/sys/sys/lock.h
  1.82      +1 -1      src/sys/sys/mutex.h


More information about the cvs-src mailing list