Messages in this thread | | | From | Oliver Neukum <> | Subject | Re: refcounting drivers' data structures used in sysfs buffers | Date | Mon, 12 Mar 2007 21:15:31 +0100 |
| |
Am Montag, 12. März 2007 21:03 schrieb Alan Stern: > On Mon, 12 Mar 2007, Oliver Neukum wrote: > > > > > I don't like reverting my own code. But I predict he'll tell you that a > > > > driver's bond with a device should be represented in a data structure > > > > that is to be refcounted. > > > > > > :-) > > > > Coming to think about it, he might be right there. > > There still would be a synchronization problem. Refcounts don't solve > races; they only solve lifetime problems. And you would still have to > change the sysfs API, plus all the other stuff... > > Do you think Linus would listen if all three of us (plus maybe Greg) tried > to convince him?
No. He'd tell you that a crap API should be changed.
Regards Oliver - 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/
| |