[RFC v5 1/5] drm/netlink: Add netlink infrastructure

Zack McKevitt zachary.mckevitt at oss.qualcomm.com
Fri Aug 15 17:07:20 UTC 2025


On 7/30/2025 12:49 AM, Aravind Iddamsetty wrote:
> +static void drm_genl_family_init(struct drm_device *dev)
> +{
> +	dev->drm_genl_family = drmm_kzalloc(dev, sizeof(struct genl_family),
> +					    GFP_KERNEL);
> +
> +	/* Use drm primary node name eg: card0 to name the genl family */
> +	snprintf(dev->drm_genl_family->name, sizeof(dev->drm_genl_family->name),
> +		 "%s", dev->primary->kdev->kobj.name);
> +	dev->drm_genl_family->version = DRM_GENL_VERSION;
> +	dev->drm_genl_family->parallel_ops = true;
> +	dev->drm_genl_family->ops = drm_genl_ops;
> +	dev->drm_genl_family->n_ops = ARRAY_SIZE(drm_genl_ops);
> +	dev->drm_genl_family->maxattr = DRM_ATTR_MAX;
> +	dev->drm_genl_family->module = dev->dev->driver->owner;
> +}

We are interested in using this infrastructure at Qualcomm to 
communicate telemetry information for the AI100 accelerators. It would 
be nice if this function could support drm_minor accel nodes 
(dev->accel) as well.

Thanks,

Zack


More information about the Intel-xe mailing list