]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
libnvdimm, pfn: 'resource'-address and 'size' attributes for pfn devices
authorDan Williams <dan.j.williams@intel.com>
Thu, 3 Mar 2016 17:46:04 +0000 (09:46 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sat, 5 Mar 2016 20:25:45 +0000 (12:25 -0800)
commitf6ed58c70d14572d0272ee129579dbfc97b97f50
tree1579f527bffa060ec75a21be4c75f83b21e7b9f7
parentcfe30b872058f211630eda7f65fb19d83beaaa3c
libnvdimm, pfn: 'resource'-address and 'size' attributes for pfn devices

Currenty with a raw mode pmem namespace the physical memory address range for
the device can be obtained via /sys/block/pmemX/device/{resource|size}.  Add
similar attributes for pfn instances that takes the struct page memmap and
section padding into account.

Reported-by: Haozhong Zhang <haozhong.zhang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pfn_devs.c