]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Extend the kernel unit number allocator for allocating specific unit
authorjh <jh@FreeBSD.org>
Mon, 5 Jul 2010 16:23:55 +0000 (16:23 +0000)
committerjh <jh@FreeBSD.org>
Mon, 5 Jul 2010 16:23:55 +0000 (16:23 +0000)
commitb0744cfb8dbf62bf31a6e89b2de383ebfd461213
treeaa72b34baee9922e9040fa167dd3bab331b4d8cc
parentd33b286554c298f108e3e84d632332893f5a4f54
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).

Discussed on: freebsd-hackers
share/man/man9/Makefile
share/man/man9/alloc_unr.9
sys/kern/subr_unit.c
sys/sys/systm.h