diff options
author | Warner Losh <imp@FreeBSD.org> | 2006-06-12 04:06:21 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2006-06-12 04:06:21 +0000 |
commit | ccdc8d9bffdc66f988de20f75c70d2fcb7fca5b6 (patch) | |
tree | b787b2029f45b61dc83245fb51c58663ad47973d /sys/kern/subr_rman.c | |
parent | d47f76464aa47e56205eff70a55567313a3cfde1 (diff) | |
download | src-test2-ccdc8d9bffdc66f988de20f75c70d2fcb7fca5b6.tar.gz src-test2-ccdc8d9bffdc66f988de20f75c70d2fcb7fca5b6.zip |
Notes
Diffstat (limited to 'sys/kern/subr_rman.c')
-rw-r--r-- | sys/kern/subr_rman.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c index f5bfd5bc2c70..ce6592ea4d58 100644 --- a/sys/kern/subr_rman.c +++ b/sys/kern/subr_rman.c @@ -183,6 +183,16 @@ rman_manage_region(struct rman *rm, u_long start, u_long end) } int +rman_init_from_resource(struct rman *rm, struct resource *r) +{ + int rv; + + if ((rv = rman_init(rm)) != 0) + return (rv); + return (rman_manage_region(rm, r->__r_i->r_start, r->__r_i->r_end)); +} + +int rman_fini(struct rman *rm) { struct resource_i *r; |