summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-02-25 22:57:26 -0500
committermidipix <writeonce@midipix.org>2020-05-23 05:59:02 +0000
commite407b8dc73e1bb9c2f5cad4dedf255ca431b1f06 (patch)
treebbb21f02e6086d95ec46601c52b93a30ec995fe8
parent76f8c51055cb1b69d087b113453764227160bc05 (diff)
downloadtpax-e407b8dc73e1bb9c2f5cad4dedf255ca431b1f06.tar.bz2
tpax-e407b8dc73e1bb9c2f5cad4dedf255ca431b1f06.tar.xz
driver: internals: added tpax_get_driver_anon_map_addr().
-rw-r--r--src/internal/tpax_driver_impl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/internal/tpax_driver_impl.h b/src/internal/tpax_driver_impl.h
index 56c40b2..7e610d0 100644
--- a/src/internal/tpax_driver_impl.h
+++ b/src/internal/tpax_driver_impl.h
@@ -80,6 +80,15 @@ static inline struct tpax_driver_ctx_impl * tpax_get_driver_ictx(
return 0;
}
+static inline void * tpax_get_driver_anon_map_addr(
+ const struct tpax_driver_ctx * dctx,
+ size_t * size)
+{
+ struct tpax_driver_ctx_impl * ictx = tpax_get_driver_ictx(dctx);
+ *size = ictx->bufsize;
+ return ictx->bufaddr;
+}
+
static inline void tpax_driver_set_ectx(
const struct tpax_driver_ctx * dctx,
const struct tpax_unit_ctx * uctx,