Add rman_is_region_manager() for the benefit of an alpha hack.
This commit is contained in:
parent
57489b8657
commit
2b35175c8a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150547
@ -737,6 +737,13 @@ rman_set_device(struct resource *r, struct device *dev)
|
||||
r->__r_i->r_dev = dev;
|
||||
}
|
||||
|
||||
int
|
||||
rman_is_region_manager(struct resource *r, struct rman *rm)
|
||||
{
|
||||
|
||||
return (r->__r_i->r_rm == rm);
|
||||
}
|
||||
|
||||
/*
|
||||
* Sysctl interface for scanning the resource lists.
|
||||
*
|
||||
|
@ -157,6 +157,7 @@ int rman_fini(struct rman *rm);
|
||||
int rman_init(struct rman *rm);
|
||||
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_region_manager(struct resource *r, struct rman *rm);
|
||||
int rman_release_resource(struct resource *r);
|
||||
struct resource *rman_reserve_resource(struct rman *rm, u_long start,
|
||||
u_long end, u_long count,
|
||||
|
Loading…
Reference in New Issue
Block a user