Re: svn commit: r324541 - in head: share/man/man9 sys/kern sys/sys

2017-10-14 Thread Matt Joras
On 10/14/2017 11:03, Mark Johnston wrote: > TAILQ_FOREACH_SAFE just fetches the next element at the beginning of > each loop iteration rather than at the end, same as the current > implementation of clear_unrhdr() does. There's no change to the code > generated by clang when I replace your loop

Re: svn commit: r324541 - in head: share/man/man9 sys/kern sys/sys

2017-10-14 Thread Mark Johnston
On Fri, Oct 13, 2017 at 10:36:26PM -0700, Matt Joras wrote: > On 10/13/2017 22:12, Ngie Cooper (yaneurabeya) wrote: > >> Modified: head/sys/kern/subr_unit.c > >> == > >> --- head/sys/kern/subr_unit.c Wed Oct 11

Re: svn commit: r324541 - in head: share/man/man9 sys/kern sys/sys

2017-10-14 Thread Matt Joras
On 10/13/2017 22:12, Ngie Cooper (yaneurabeya) wrote: >> Modified: head/sys/kern/subr_unit.c >> == >> --- head/sys/kern/subr_unit.cWed Oct 11 20:36:22 2017 >> (r324540) >> +++ head/sys/kern/subr_unit.c

Re: svn commit: r324541 - in head: share/man/man9 sys/kern sys/sys

2017-10-13 Thread Ngie Cooper (yaneurabeya)
> On Oct 11, 2017, at 14:53, Matt Joras wrote: > > Author: mjoras > Date: Wed Oct 11 21:53:50 2017 > New Revision: 324541 > URL: https://svnweb.freebsd.org/changeset/base/324541 > > Log: > Add clearing function for unr(9). > > Previously before you could call

svn commit: r324541 - in head: share/man/man9 sys/kern sys/sys

2017-10-11 Thread Matt Joras
Author: mjoras Date: Wed Oct 11 21:53:50 2017 New Revision: 324541 URL: https://svnweb.freebsd.org/changeset/base/324541 Log: Add clearing function for unr(9). Previously before you could call unrhdr_delete you needed to individually free every allocated unit. It is useful to be able to