Li Zefan wrote: > It seems to me this is a little messy. Agreed. It looks too finicky to base real software on; that is, I doubt that any robust application or user level software is going to depend on it for serious automated self-configuration.
I haven't seen a serious problem with cpuset documentation, which is the earlier API of this flavor (though, granted, I'd be the last person on the planet to see such ;). It seems to me that this style of API is easy enough for a variety of people to figure out that this won't help that much. And certainly the more interesting details that need documentation are far too verbose for this presentation. So ... little or no programmatic use, little or no human use. It also reminds me a bit, in a very loose way, of efforts in sysfs that have taken us a while, and too many changes, to get right. One needs to be -selective- in what one exposes, in order to minimize maintenance costs and maximize the signal-to-noise ratio, over time. This feels like it exposes too much. Finally, it goes against the one thingie per file (at most, one scalar vector) that has worked well for us when tried. As to the motivations Paul M gives: 1) Avoid "an arbitrary mess of ad-hoc APIs": We can still do that, whether or not we "self-document" these API's in this manner. 2) binary APIs versus ASCII APIs: Well, I have an ASCII API bias, not surprising. But I'd suggest not doing things "in anticipation" of some future fuzzy binary API support. Wait until that day actually arrives. 3) The memory controller currently has files with the "_in_bytes": The traditional way to handle this is Documentation and man pages; good enough for my granddad, good enough for me ;). -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson <[EMAIL PROTECTED]> 1.940.382.4214 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/