From 0e00414344892634cc829c89c89f646f2b1b7700 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Tue, 10 Oct 2017 13:35:44 -0700 Subject: [PATCH] env: add an opaque pointer for implementation use This is a request from an implementer of an alternate (non-DPDK) env implementation; it will only have meaning for the specific env implementaiton, but it can be used for passing env-specific arguments through the generic spdk_env_init() call. Change-Id: I37f70dd3b961f08c3bc2f25f3d12cc02bd3d6699 Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/382055 Tested-by: SPDK Automated Test System Reviewed-by: Changpeng Liu Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- include/spdk/env.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/spdk/env.h b/include/spdk/env.h index 921e32329..5bd4ff14c 100644 --- a/include/spdk/env.h +++ b/include/spdk/env.h @@ -61,6 +61,9 @@ struct spdk_env_opts { int master_core; int mem_size; bool no_pci; + + /** Opaque context for use of the env implementation. */ + void *env_context; }; /**