Date: Sun, 14 Dec 2014 00:31:11 +0300 From: Chagin Dmitry <dchagin@freebsd.org> To: Benjamin Kaduk <bjkfbsd@gmail.com> Cc: "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org> Subject: Re: svn commit: r275751 - in head: share/man/man9 sys/kern sys/sys Message-ID: <20141213213111.GA2070@dchagin.static.corbina.net> In-Reply-To: <CAJ5_RoCnMNEEa86besbhfKTxf-wOhwBy%2BjktLB7%2Bod=zkSQ6Aw@mail.gmail.com> References: <201412132100.sBDL0BvR094009@svn.freebsd.org> <CAJ5_RoCnMNEEa86besbhfKTxf-wOhwBy%2BjktLB7%2Bod=zkSQ6Aw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--45Z9DzgjV8m4Oswq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 13, 2014 at 04:03:47PM -0500, Benjamin Kaduk wrote: > On Sat, Dec 13, 2014 at 4:00 PM, Dmitry Chagin <dchagin@freebsd.org> wrot= e: > > > > Author: dchagin > > Date: Sat Dec 13 21:00:10 2014 > > New Revision: 275751 > > URL: https://svnweb.freebsd.org/changeset/base/275751 > > > > Log: > > Add _NEW flag to mtx(9), sx(9), rmlock(9) and rwlock(9). > > A _NEW flag passed to _init_flags() to avoid check for double-init. > > > > > Can you please say a bit more about why this is desired and what it will = be > used for? >=20 If the kernel has been compiled with INVARIANTS _init() will assert that the lock has not been initialized multiple times. _NEW flag is needed to skip t= his. as _init() does expect you to zero lock first. it should be used carefully, when you are sure its safe, to avoid bzero'ing lock struct. ugh --=20 Have fun! chd --45Z9DzgjV8m4Oswq Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlSMsB8ACgkQ0t2Tb3OO/O0cSwCguFvw8qTzhf5ZQB7K0DaT0Dzs fNwAoKrS2rfIczoFVh6k39S3iyjfFhA/ =FAXl -----END PGP SIGNATURE----- --45Z9DzgjV8m4Oswq--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141213213111.GA2070>