Message ID | 20151110003435.18262.16786.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e9ab52cd839f |
Headers | show |
On Mon, 2015-11-09 at 19:34 -0500, Dan Williams wrote: > It's generally useful to have access to the 'ctx' from 'bus' and we > take > advantage of this capability in subsequent changes. > > Signed-off-by: Dan Williams <dan.j.williams@intel.com> > --- > lib/libndctl.c | 2 +- > lib/libndctl.sym | 1 + > lib/ndctl/libndctl.h | 1 + > 3 files changed, 3 insertions(+), 1 deletion(-) Acked-by: Vishal Verma <vishal.l.verma@intel.com> > > diff --git a/lib/libndctl.c b/lib/libndctl.c > index 326b43ec1857..6bfc79f95b83 100644 > --- a/lib/libndctl.c > +++ b/lib/libndctl.c > @@ -1084,7 +1084,7 @@ NDCTL_EXPORT const char > *ndctl_bus_get_provider(struct ndctl_bus *bus) > return bus->provider; > } > > -struct ndctl_ctx *ndctl_bus_get_ctx(struct ndctl_bus *bus) > +NDCTL_EXPORT struct ndctl_ctx *ndctl_bus_get_ctx(struct ndctl_bus > *bus) > { > return bus->ctx; > } > diff --git a/lib/libndctl.sym b/lib/libndctl.sym > index cf99d6f8d2f0..22fa12e29649 100644 > --- a/lib/libndctl.sym > +++ b/lib/libndctl.sym > @@ -30,6 +30,7 @@ global: > ndctl_bus_get_revision; > ndctl_bus_get_id; > ndctl_bus_get_provider; > + ndctl_bus_get_ctx; > ndctl_bus_wait_probe; > ndctl_dimm_get_first; > ndctl_dimm_get_next; > diff --git a/lib/ndctl/libndctl.h b/lib/ndctl/libndctl.h > index 3ccffa9093b9..1bef168935b0 100644 > --- a/lib/ndctl/libndctl.h > +++ b/lib/ndctl/libndctl.h > @@ -105,6 +105,7 @@ int ndctl_bus_is_cmd_supported(struct ndctl_bus > *bus, int cmd); > unsigned int ndctl_bus_get_revision(struct ndctl_bus *bus); > unsigned int ndctl_bus_get_id(struct ndctl_bus *bus); > const char *ndctl_bus_get_provider(struct ndctl_bus *bus); > +struct ndctl_ctx *ndctl_bus_get_ctx(struct ndctl_bus *bus); > int ndctl_bus_wait_probe(struct ndctl_bus *bus); > > struct ndctl_dimm; > > _______________________________________________ > Linux-nvdimm mailing list > Linux-nvdimm@lists.01.org > https://lists.01.org/mailman/listinfo/linux-nvdimm
diff --git a/lib/libndctl.c b/lib/libndctl.c index 326b43ec1857..6bfc79f95b83 100644 --- a/lib/libndctl.c +++ b/lib/libndctl.c @@ -1084,7 +1084,7 @@ NDCTL_EXPORT const char *ndctl_bus_get_provider(struct ndctl_bus *bus) return bus->provider; } -struct ndctl_ctx *ndctl_bus_get_ctx(struct ndctl_bus *bus) +NDCTL_EXPORT struct ndctl_ctx *ndctl_bus_get_ctx(struct ndctl_bus *bus) { return bus->ctx; } diff --git a/lib/libndctl.sym b/lib/libndctl.sym index cf99d6f8d2f0..22fa12e29649 100644 --- a/lib/libndctl.sym +++ b/lib/libndctl.sym @@ -30,6 +30,7 @@ global: ndctl_bus_get_revision; ndctl_bus_get_id; ndctl_bus_get_provider; + ndctl_bus_get_ctx; ndctl_bus_wait_probe; ndctl_dimm_get_first; ndctl_dimm_get_next; diff --git a/lib/ndctl/libndctl.h b/lib/ndctl/libndctl.h index 3ccffa9093b9..1bef168935b0 100644 --- a/lib/ndctl/libndctl.h +++ b/lib/ndctl/libndctl.h @@ -105,6 +105,7 @@ int ndctl_bus_is_cmd_supported(struct ndctl_bus *bus, int cmd); unsigned int ndctl_bus_get_revision(struct ndctl_bus *bus); unsigned int ndctl_bus_get_id(struct ndctl_bus *bus); const char *ndctl_bus_get_provider(struct ndctl_bus *bus); +struct ndctl_ctx *ndctl_bus_get_ctx(struct ndctl_bus *bus); int ndctl_bus_wait_probe(struct ndctl_bus *bus); struct ndctl_dimm;
It's generally useful to have access to the 'ctx' from 'bus' and we take advantage of this capability in subsequent changes. Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- lib/libndctl.c | 2 +- lib/libndctl.sym | 1 + lib/ndctl/libndctl.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)