PERFORCE change 191524 for review
John Baldwin
jhb at FreeBSD.org
Fri Apr 15 03:36:40 UTC 2011
http://p4web.freebsd.org/@@191524?ac=10
Change 191524 by jhb at jhb_fiver on 2011/04/15 03:35:37
Add rman_is_empty() routine.
Affected files ...
.. //depot/projects/pci/sys/kern/subr_rman.c#7 edit
.. //depot/projects/pci/sys/sys/rman.h#5 edit
Differences ...
==== //depot/projects/pci/sys/kern/subr_rman.c#7 (text+ko) ====
@@ -1058,6 +1058,12 @@
}
int
+rman_is_empty(struct rman *rm)
+{
+ return (TAILQ_EMPTY(&rm->rm_list));
+}
+
+int
rman_is_region_manager(struct resource *r, struct rman *rm)
{
==== //depot/projects/pci/sys/sys/rman.h#5 (text+ko) ====
@@ -135,6 +135,7 @@
int rman_last_free_region(struct rman *rm, u_long *start, u_long *end);
uint32_t rman_make_alignment_flags(uint32_t size);
int rman_manage_region(struct rman *rm, u_long start, u_long end);
+int rman_is_empty(struct rman *rm);
int rman_is_region_manager(struct resource *r, struct rman *rm);
int rman_release_region(struct rman *rm, u_long start, u_long end);
int rman_release_resource(struct resource *r);
More information about the p4-projects
mailing list