diff options
author | mdodd <mdodd@FreeBSD.org> | 2000-10-17 23:45:28 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2000-10-17 23:45:28 +0000 |
commit | 81e1a4e6535529c973204e2f279d1f16fea83879 (patch) | |
tree | bcbda71a37ff5c295c19483ad36a44ab48e85ae2 | |
parent | 94df07bcb48165dd44a53b14baeca48e2b0da863 (diff) | |
download | FreeBSD-src-81e1a4e6535529c973204e2f279d1f16fea83879.zip FreeBSD-src-81e1a4e6535529c973204e2f279d1f16fea83879.tar.gz |
Add rman_get_size(), which does what you would expect.
Further commits to make use of this will follow.
-rw-r--r-- | sys/sys/rman.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/rman.h b/sys/sys/rman.h index 6561554..0ec2205 100644 --- a/sys/sys/rman.h +++ b/sys/sys/rman.h @@ -99,6 +99,7 @@ uint32_t rman_make_alignment_flags(uint32_t size); #define rman_get_start(r) ((r)->r_start) #define rman_get_end(r) ((r)->r_end) +#define rman_get_size(r) (((r)->r_end - (r)->r_start) + 1) #define rman_get_flags(r) ((r)->r_flags) #define rman_set_virtual(r,v) ((r)->r_virtual = (v)) #define rman_get_virtual(r) ((r)->r_virtual) |