lkml.org 
[lkml]   [2021]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 07/14] vfio/mdev: idxd: add 1dwq-v1 mdev type
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

\
 
 \ /
  Last update: 2021-02-11 01:03    [W:0.151 / U:8.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site