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
|