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:
parent
ba431e231e
commit
8b61834dd0
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user