Add clearing function for unr(9).
authormjoras <mjoras@FreeBSD.org>
Wed, 11 Oct 2017 21:53:50 +0000 (21:53 +0000)
committermjoras <mjoras@FreeBSD.org>
Wed, 11 Oct 2017 21:53:50 +0000 (21:53 +0000)
commit1bac95586adc11ec88a37a4b6186e68f45f6ea63
treeecd65e9e127c6ac6c3e2b92a51b8f85963ddba0f
parent4e98454f0067f8969b8a290da84bb97a9c38be11
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 tear
down the unr without having to go through this process, as it is
significantly faster than freeing the individual units.

Reviewed by: cem, lidl
Approved by: rstone (mentor)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12591
share/man/man9/Makefile
share/man/man9/unr.9
sys/kern/subr_unit.c
sys/sys/systm.h