. Enable parsing /sys/bus/nd/devices/nmemX/commands for ND_CMD_CALL . Enable translation of ND_CMD_CALL to ND_IOCTL_CALL
Cc: Dan Williams <dan.j.willi...@intel.com> Signed-off-by: Brian Boylston <brian.boyls...@hpe.com> --- ndctl/lib/libndctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ndctl/lib/libndctl.c b/ndctl/lib/libndctl.c index 99938be..7a847fa 100644 --- a/ndctl/lib/libndctl.c +++ b/ndctl/lib/libndctl.c @@ -719,7 +719,7 @@ static int to_dsm_index(const char *name, int dimm) int i, end_cmd; if (dimm) { - end_cmd = ND_CMD_VENDOR; + end_cmd = ND_CMD_CALL; cmd_name_fn = nvdimm_cmd_name; } else { end_cmd = nd_cmd_clear_error; @@ -2183,6 +2183,7 @@ static int to_ioctl_cmd(int cmd, int dimm) case ND_CMD_GET_CONFIG_DATA: return ND_IOCTL_GET_CONFIG_DATA; case ND_CMD_SET_CONFIG_DATA: return ND_IOCTL_SET_CONFIG_DATA; case ND_CMD_VENDOR: return ND_IOCTL_VENDOR; + case ND_CMD_CALL: return ND_IOCTL_CALL; case ND_CMD_VENDOR_EFFECT_LOG_SIZE: case ND_CMD_VENDOR_EFFECT_LOG: default: -- 2.8.3 _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm