From owner-cvs-src-old@FreeBSD.ORG Fri Apr 29 20:06:08 2011 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 43F3C106566B for ; Fri, 29 Apr 2011 20:06:08 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 323A08FC12 for ; Fri, 29 Apr 2011 20:06:08 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p3TK68wR041311 for ; Fri, 29 Apr 2011 20:06:08 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p3TK68dQ041310 for cvs-src-old@freebsd.org; Fri, 29 Apr 2011 20:06:08 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201104292006.p3TK68dQ041310@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Fri, 29 Apr 2011 20:05:19 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/share/man/man9 Makefile rman.9 src/sys/kern subr_rman.c src/sys/sys rman.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: Fri, 29 Apr 2011 20:06:08 -0000 jhb 2011-04-29 20:05:19 UTC FreeBSD src repository Modified files: share/man/man9 Makefile rman.9 sys/kern subr_rman.c sys/sys rman.h Log: SVN rev 221220 on 2011-04-29 20:05:19Z by jhb Extend the rman(9) API to support altering an existing resource. Specifically, these changes allow a resource to back a relocatable and resizable resource such as the I/O window decoders in PCI-PCI bridges. - rman_adjust_resource() can adjust the start and end address of an existing resource. It only succeeds if the newly requested address space is already free. It also supports shrinking a resource in which case the freed space will be marked unallocated in the rman. - rman_first_free_region() and rman_last_free_region() return the start and end addresses for the first or last unallocated region in an rman, respectively. This can be used to determine by how much the resource backing an rman must be adjusted to accomodate an allocation request that does not fit into the existing rman. While here, document the rm_start and rm_end fields in struct rman, rman_is_region_manager(), the bound argument to rman_reserve_resource_bound(), and rman_init_from_resource(). Revision Changes Path 1.388 +5 -0 src/share/man/man9/Makefile 1.12 +122 -5 src/share/man/man9/rman.9 1.65 +158 -0 src/sys/kern/subr_rman.c 1.35 +3 -0 src/sys/sys/rman.h