event: passing env_context from app

Change-Id: Id6b60b16c77ddd0818b6bdd412096b0285cb44b9
Signed-off-by: zkhatami88 <z.khatami88@gmail.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/443649
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Darek Stojaczyk 2019-02-05 12:51:53 +01:00 committed by Jim Harris
parent ba431e231e
commit 8b61834dd0
2 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,9 @@ struct spdk_app_opts {
/* Number of trace entries allocated for each core */
uint64_t num_entries;
/** Opaque context for use of the env implementation. */
void *env_context;
};
/**

View File

@ -507,6 +507,7 @@ spdk_app_setup_env(struct spdk_app_opts *opts)
env_opts.num_pci_addr = opts->num_pci_addr;
env_opts.pci_blacklist = opts->pci_blacklist;
env_opts.pci_whitelist = opts->pci_whitelist;
env_opts.env_context = opts->env_context;
rc = spdk_env_init(&env_opts);
free(env_opts.pci_blacklist);