> Q: How does the module remove code work?
> A: It stops the machine by scheduling threads for every other CPU,
> then they all disable interrupts. At this stage we know that noone
> is in try_module_get(), so we can reliably read the counter. If
> zero, or the rmmod user specified --wait, we set the live flag to
> false. After this, the reference count should not increase, and
> each module_put() will wake us up, so we can check the counter
> again.
Where is this implemented? I guess I need this for swsusp...
Pavel
-- Worst form of spam? Adding advertisment signatures ala sourceforge.net. What goes next? Inserting advertisment *into* email? - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/