User initiated hotplug and kernel initiated hotplug - where is the synchronization?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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�����٥





[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux