tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Locking strategy for device deletion (also see PR kern/48536)
Date: Tue, 7 Jun 2016 18:28:11 +0800 (PHT)
From: Paul Goyette <paul%whooppee.com@localhost>
Can anyone suggest a reliable way to ensure that a device-driver module
can be _really_ safely detached?
General approach:
1. Prevent new references (e.g., devsw_detach).
2. Wait for existing references to drain (or roll back with
devsw_attach if you don't want to wait, and fail with EBUSY).
3. Unload.
Home |
Main Index |
Thread Index |
Old Index