cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h src/sys/vm vm_map.c

Attilio Rao attilio at FreeBSD.org
Thu May 31 09:14:48 UTC 2007


attilio     2007-05-31 09:14:48 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_sx.c 
    sys/sys              sx.h 
    sys/vm               vm_map.c 
  Log:
  Add functions sx_xlock_sig() and sx_slock_sig().
  These functions are intended to do the same actions of sx_xlock() and
  sx_slock() but with the difference to perform an interruptible sleep, so
  that sleep can be interrupted by external events.
  In order to support these new featueres, some code renstruction is needed,
  but external API won't be affected at all.
  
  Note: use "void" cast for "int" returning functions in order to avoid tools
  like Coverity prevents to whine.
  
  Requested by: rwatson
  Tested by: rwatson
  Reviewed by: jhb
  Approved by: jeff (mentor)
  
  Revision  Changes    Path
  1.53      +62 -26    src/sys/kern/kern_sx.c
  1.36      +90 -64    src/sys/sys/sx.h
  1.385     +2 -2      src/sys/vm/vm_map.c


More information about the cvs-src mailing list