cvs commit: src/sys/kern subr_witness.c src/sys/sys lock.h

John Baldwin jhb at FreeBSD.org
Thu Jul 31 11:51:00 PDT 2003


jhb         2003/07/31 11:50:58 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             subr_witness.c 
    sys/sys              lock.h 
  Log:
  Add a new function to look for a spinlock's instance when it is held by
  another thread.  We use the td_oncpu member of the other field to locate
  it's associated CPU and then search the that CPU's list of spin locks
  contained in its per-CPU data.  This is not always safe and may in fact
  panic or just not work, but it is useful in at least one case.
  
  Revision  Changes    Path
  1.157     +21 -0     src/sys/kern/subr_witness.c
  1.48      +1 -0      src/sys/sys/lock.h


More information about the cvs-src mailing list