Messages in this thread | | | From | (Eric W. Biederman) | Date | Mon, 20 Sep 2010 00:19:59 -0700 | Subject | [PATCH 0/5] uio hotplug support |
| |
Implement the ability to hotunplug a uio device while file handles are still open without crashing.
I have written the code very carefully, and this survives my basic testing. So at the very least this is better than what is present in uio today.
I have implemented the ``locking'' for hotunplug support in a generic library, that should be reusable to make this kind of support easier to add in other pieces of the kernel.
Eric W. Biederman (5): uio: Simplify the lifetime logic of struct uio_device. uio: Kill unused vma_count. uio: Remove unused uio_info mmap method. libunload: A library to help remove open files uio: Implement hotunplug support, using libunload
--- drivers/uio/uio.c | 326 ++++++++++++++++++++++++++++++-------------- fs/Makefile | 2 +- fs/libunload.c | 166 ++++++++++++++++++++++ include/linux/uio_driver.h | 11 +-- include/linux/unload.h | 33 +++++ 5 files changed, 426 insertions(+), 112 deletions(-)
| |