Skip to contentSkip to conversation

kobject_uevent call in device_add

DISCUSSION Srinivas Pandruvada 1 participant 1 message Aug 20, 2013

lore
Share & tools
lore
#0 lore raw

Is there any specific reason that "kobject_uevent(&dev->kobj, KOBJ_ADD)
is called before calling "class_intf->add_dev(dev, class_intf) in the function device_add()?

I am wondering if we call after class_intf->add_dev, it will provide opportunity for client drivers to do some operation before user space is notified.

Thanks,
Srinivas