libnvdimm: Add 'resource' sysfs attribute to regions
authorDave Jiang <dave.jiang@intel.com>
Fri, 7 Apr 2017 22:33:25 +0000 (15:33 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 13 Apr 2017 04:56:42 +0000 (21:56 -0700)
commit802f4be6feee3f0395c26ac9717da5b15f6b8fec
tree94aa31dd73e3f504d75dd6caf1d7cdb243e11890
parent6a6bef90425e8cba7c53919d923240559b7f247c
libnvdimm: Add 'resource' sysfs attribute to regions

Adding sysfs attribute in order to export the physical address of the
region. This is for supporting of user app poison clear via
ND_IOCTL_CLEAR_ERROR.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/region_devs.c