svn commit: r273400 - in head/sys: kern sys
Mateusz Guzik
mjguzik at gmail.com
Tue Oct 21 21:45:52 UTC 2014
On Tue, Oct 21, 2014 at 09:40:38PM +0000, Bjoern A. Zeeb wrote:
>
> On 21 Oct 2014, at 19:02 , Mateusz Guzik <mjg at 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>
More information about the svn-src-all
mailing list