[RFC PATCH v2 3/7] ndctl: nvdimmd: add nvdimmd necessary functions