cvs commit: src/sys/kern kern_sysctl.c src/sys/sys sysctl.h

Don Lewis truckman at FreeBSD.org
Mon Mar 15 22:53:06 PST 2004


truckman    2004/03/15 22:53:03 PST

  FreeBSD src repository

  Modified files:
    sys/kern             kern_sysctl.c 
    sys/sys              sysctl.h 
  Log:
  Rename the wiredlen member of struct sysctl_req to validlen and always
  set it to avoid the need for a bunch of code that tests whether or
  not the lock member is set to REQ_WIRED in order to determine which
  length member should be used.
  
  Fix another bug in the oldlen return value code.
  
  Fix a potential wired memory leak if a sysctl handler uses
  sysctl_wire_old_buffer() and returns an EAGAIN error to trigger
  a retry.
  
  Revision  Changes    Path
  1.155     +16 -14    src/sys/kern/kern_sysctl.c
  1.127     +1 -1      src/sys/sys/sysctl.h


More information about the cvs-src mailing list