diff options
author | imp <imp@FreeBSD.org> | 2004-06-30 16:54:10 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2004-06-30 16:54:10 +0000 |
commit | 9f2638da1f4118987f7d015ce3a5775d193993a1 (patch) | |
tree | f8c488389a89e7643ebdbebc2795acba37ee315f /sys/sys/rman.h | |
parent | 7dde49bc615988a94e2e75d06480182478dc650b (diff) | |
download | FreeBSD-src-9f2638da1f4118987f7d015ce3a5775d193993a1.zip FreeBSD-src-9f2638da1f4118987f7d015ce3a5775d193993a1.tar.gz |
Hide struct resource and struct rman. You must define
__RMAN_RESOURCE_VISIBLE to see inside these now.
Reviewed by: dfr, njl (not njr)
Diffstat (limited to 'sys/sys/rman.h')
-rw-r--r-- | sys/sys/rman.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/rman.h b/sys/sys/rman.h index 68dd1bd..d3af804 100644 --- a/sys/sys/rman.h +++ b/sys/sys/rman.h @@ -93,6 +93,7 @@ struct u_rman { * at some point in the future, particularly if we want to support 36-bit * addresses on IA32 hardware. */ +#ifdef __RMAN_RESOURCE_VISIBLE TAILQ_HEAD(resource_head, resource); struct resource { TAILQ_ENTRY(resource) r_link; @@ -119,6 +120,11 @@ struct rman { const char *rm_descr; /* text descripion of this resource */ }; TAILQ_HEAD(rman_head, rman); +#else +struct resource; +struct rman; +struct device; +#endif int rman_activate_resource(struct resource *r); int rman_await_resource(struct resource *r, int pri, int timo); |