. 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 <[email protected]> Signed-off-by: Brian Boylston <[email protected]> --- 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 c824d83..1e07520 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; @@ -2184,6 +2184,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 [email protected] https://lists.01.org/mailman/listinfo/linux-nvdimm
