]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r209710:
authorjh <jh@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 14 Mar 2011 17:08:30 +0000 (17:08 +0000)
committerjh <jh@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 14 Mar 2011 17:08:30 +0000 (17:08 +0000)
commit3ee962357731358553298009a2887a486b0a39c1
treef436548f904132eca03b2a78de8d2e0c5a0a70fe
parente4ab8091bc6ec6afc4b343c968525dbe3f7d5bf1
MFC r209710:

Extend the kernel unit number allocator for allocating specific unit
numbers. This change adds a new function alloc_unr_specific() which
returns the requested unit number if it is free. If the number is
already allocated or out of the range, -1 is returned.

Update alloc_unr(9) manual page accordingly and add a MLINK for
alloc_unr_specific(9).

git-svn-id: svn://svn.freebsd.org/base/stable/8@219642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
share/man/man9/Makefile
share/man/man9/alloc_unr.9
sys/kern/subr_unit.c
sys/sys/systm.h