Re: [PATCH 4/5] driver core: set up ownership of class devices in sysfs

From: Stephen Hemminger
Date: Fri Aug 19 2016 - 22:26:56 EST


On Tue, 16 Aug 2016 15:33:14 -0700
Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx> wrote:

> static struct kobj_type device_ktype = {
> .release = device_release,
> .sysfs_ops = &dev_sysfs_ops,
> .namespace = device_namespace,
> + .get_ownership = device_get_ownership,
> };
>

OT - I wonder if kobj_type could be ro_after_init?