[PATCH 5/7] nvme: expose subsystem type in sysfs attribute 'subtype'

Daniel Wagner dwagner at suse.de
Wed Sep 22 01:02:56 PDT 2021


On Wed, Sep 22, 2021 at 08:35:23AM +0200, Hannes Reinecke wrote:
> +static SUBSYS_ATTR_RO(subtype, S_IRUGO, nvme_subsys_show_subtype);
> +
>  #define nvme_subsys_show_str_function(field)				\
>  static ssize_t subsys_##field##_show(struct device *dev,		\
>  			    struct device_attribute *attr, char *buf)	\
> @@ -2618,6 +2636,7 @@ static struct attribute *nvme_subsys_attrs[] = {
>  	&subsys_attr_serial.attr,
>  	&subsys_attr_firmware_rev.attr,
>  	&subsys_attr_subsysnqn.attr,
> +	&subsys_attr_subtype.attr,


Shouldn't this be subsystype to stay consistent with subsysnqn?



More information about the Linux-nvme mailing list