We can keep the same policy as modules now - keep the usage count at 0
when not in use. That way the module can unload at any time. module_exit()
calls driver_unregister(), which, down the line, calls the drivers'
remove() for each device attached to it.
That seems a lot cleaner than anything so far; we leverage the existing
module infrastructure as much as possible. I'll see about codifying the
concept in the next day or so and sending it out..
-pat
-
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/