Re: [RFC] [PATCH] Device removal callback

From: Patrick Mochel (mochel@osdl.org)
Date: Mon Mar 10 2003 - 10:45:12 EST


> So, here's my simple patch. I'd really like this to be applied to the
> proper kernel. I really can't see how the driver model is working
> without walking children on unregister, but this atleast allows you to
> handle it yourself.

The assumption is that the bus driver will take care of cleaning up all
the children before unregistering the parent. This place a bit more
responsibility on the bus driver, but it keeps it simple in the core.

That's not to say that it can't change in the future, but I don't want to
take that step right now. There are a lot of implications WRT locking and
recursion that need to be worked out, and I'd rather wait on making these
kind of core changes.

        -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/



This archive was generated by hypermail 2b29 : Sat Mar 15 2003 - 22:00:22 EST