From owner-cvs-src-old@FreeBSD.ORG Mon Jul 5 16:36:51 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BB6B1065673 for ; Mon, 5 Jul 2010 16:36:51 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 393DD8FC16 for ; Mon, 5 Jul 2010 16:36:51 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o65Gap1w029801 for ; Mon, 5 Jul 2010 16:36:51 GMT (envelope-from jh@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o65GapVo029800 for cvs-src-old@freebsd.org; Mon, 5 Jul 2010 16:36:51 GMT (envelope-from jh@repoman.freebsd.org) Message-Id: <201007051636.o65GapVo029800@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jh@repoman.freebsd.org using -f From: Jaakko Heinonen Date: Mon, 5 Jul 2010 16:23:55 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/share/man/man9 Makefile alloc_unr.9 src/sys/kern subr_unit.c src/sys/sys systm.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2010 16:36:51 -0000 jh 2010-07-05 16:23:55 UTC FreeBSD src repository Modified files: share/man/man9 Makefile alloc_unr.9 sys/kern subr_unit.c sys/sys systm.h Log: SVN rev 209710 on 2010-07-05 16:23:55Z by jh 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 Revision Changes Path 1.369 +1 -0 src/share/man/man9/Makefile 1.5 +11 -1 src/share/man/man9/alloc_unr.9 1.12 +168 -13 src/sys/kern/subr_unit.c 1.288 +1 -0 src/sys/sys/systm.h