kobject_uevent call in device_add

From: Srinivas Pandruvada
Date: Tue Aug 20 2013 - 13:40:34 EST


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





--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/