summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/rmodule.h1
-rw-r--r--src/lib/rmodule.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/include/rmodule.h b/src/include/rmodule.h
index a2612d1110..c0c062cf80 100644
--- a/src/include/rmodule.h
+++ b/src/include/rmodule.h
@@ -55,6 +55,7 @@ struct prog;
struct rmod_stage_load {
uint32_t cbmem_id;
struct prog *prog;
+ void *params;
};
/* Both of the following functions return 0 on success, -1 on error. */
diff --git a/src/lib/rmodule.c b/src/lib/rmodule.c
index 585fb5f2ef..9825e6a50f 100644
--- a/src/lib/rmodule.c
+++ b/src/lib/rmodule.c
@@ -296,5 +296,8 @@ int rmodule_stage_load(struct rmod_stage_load *rsl)
rmodule_memory_size(&rmod_stage));
prog_set_entry(rsl->prog, rmodule_entry(&rmod_stage), NULL);
+ /* Allow caller to pick up parameters, if available. */
+ rsl->params = rmodule_parameters(&rmod_stage);
+
return 0;
}