Hello, I have this doubt lingering on, and I'd appreciate if some one could throw light on this: The kernel hotplug driver pciehp can initiate hotplug based on what it senses from the HW (button press etc). The user space can also initiate the same operations by using "rescan" or "remove" attributes in sysfs. My questions: 1) Is it safe to mix the above two? In other words could there be race conditions because user initiated hotplug could interfere with kernel initiated hotplug and vice versa? Who ensures that the atomicity of such operations is preserved? 2) Can you point me to any locks that are present and I may have missed for handling such scenarios? Thanks, Rajat ��.n��������+%������w��{.n�����{���"�)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥