On Tue, Oct 21, 2014 at 09:40:38PM +0000, Bjoern A. Zeeb wrote:
> 
> On 21 Oct 2014, at 19:02 , Mateusz Guzik <m...@freebsd.org> wrote:
> 
> > Author: mjg
> > Date: Tue Oct 21 19:02:26 2014
> > New Revision: 273400
> > URL: https://svnweb.freebsd.org/changeset/base/273400
> > 
> > Log:
> >  Rename sysctl_lock and _unlock to sysctl_xlock and _xunlock.
> 
> You are perfectly describing what you are doing, but I’d also like to 
> understand the “why?”
> 

First off, these function do lock sysctl exclusively, so I find this to
be a better suited name.

In https://svnweb.freebsd.org/base?view=revision&revision=273401 I added
shared locking to sysctl and this change "coincidently" freed up a nice
name for a functions which remember previous lock type and lock it the
same way later.

-- 
Mateusz Guzik <mjguzik gmail.com>
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to