Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Apr 2011 20:05:19 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/share/man/man9 Makefile rman.9 src/sys/kern subr_rman.c src/sys/sys rman.h
Message-ID:  <201104292006.p3TK68dQ041310@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104292006.p3TK68dQ041310>