Re: [PATCH v5 07/14] vfio/mdev: idxd: add 1dwq-v1 mdev type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 05, 2021 at 01:53:37PM -0700, Dave Jiang wrote:

> -static const struct mdev_parent_ops idxd_vdcm_ops = {
> +static ssize_t name_show(struct kobject *kobj, struct device *dev, char *buf)
> +{
> +	struct vdcm_idxd_type *type;
> +
> +	type = idxd_vdcm_find_vidxd_type(dev, kobject_name(kobj));
> +
> +	if (type)
> +		return sprintf(buf, "%s\n", type->name);
> +
> +	return -EINVAL;

Success oriented flow

Jason



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux