Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Mar 2004 22:53:03 -0800 (PST)
From:      Don Lewis <truckman@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_sysctl.c src/sys/sys sysctl.h
Message-ID:  <200403160653.i2G6r5SC030211@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403160653.i2G6r5SC030211>