summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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,