timerfd() and system call review
timerfd() and system call review
Posted Aug 15, 2007 1:24 UTC (Wed) by mkerrisk (subscriber, #1978)In reply to: timerfd() and system call review by mhelsley
Parent article: timerfd() and system call review
"one of the best ways to find shortcomings in an API is to attempt to document it comprehensively"
True. However it's not nearly as good when the person involved in writing the code implementing the API also writes the documentation -- that does not strain underlying assumptions in the way that thorough review and proper documentation processes tend to.
Agreed. However, I've been trying to encourage kernel developers to supply the beginnings of a man page that I then review. Even that is a very fruitful process, when it happens. But the ideal is of course as you suggest a much better review and documentation process involving kernel developers.
So perhaps once the API is in glibc and documented by another party it could be considered "stable".
There are many problems with this idea: some APIs never make it to glibc; sometimes glibc provides a wrapper that modifies the API; sometimes documentation does not arrive for a very long time...
Posted Aug 18, 2007 18:16 UTC (Sat)
by landley (guest, #6789)
[Link] (2 responses)
1) Before a third party can document an API, they have to learn how to
2) I don't pay much attention to glibc, I pay attention to uClibc. I'll
Posted Aug 19, 2007 7:09 UTC (Sun)
by mkerrisk (subscriber, #1978)
[Link] (1 responses)
Doing it that way would be. Obviously efficiently written documentation needs to be collaborative, either written by the developer, and improved via critique from peers and/or individuals well versed in writing documentation, or written by a third party with help from the developer, who explains the API.
Posted Aug 20, 2007 5:20 UTC (Mon)
by landley (guest, #6789)
[Link]
A) Contradictory information from different developers.
I also got some useful information, but both of the developers I need to
Also, although development and debugging parallelize just fine, editorial
Rob
Two points:timerfd() and system call review
use it, which is a chicken and egg problem (especially if you're trying
to be thorough). If nothing else it's insanely time consuming.
happily document what uClibc implements, and ignore the rest because if
uClibc doesn't implement it, it really can't be all that important.
1) Before a third party can document an API, they have to learn how to
use it, which is a chicken and egg problem (especially if you're trying
to be thorough). If nothing else it's insanely time consuming.
timerfd() and system call review
You didn't follow the saga of my attempts to document the subset of sysfs timerfd() and system call review
used to populate /dev. Responses I got included:
B) Corrections consisting of "that's wrong" with no hint about the
approved way to do it.
C) Being repeatedly told I was an idiot and not worth their time.
D) Questioning why anyone would want to document this when someone's
already written a program using it.
E) Being repeatedly told "there is no stable API", I.E. outright
resistance to documenting this area because they didn't want to lose the
freedom to change it on a whim.
talk to are essentially spam-blocking me now. Oh well.
functions don't. This is why you generally don't have multiple
maintainers whose jurisdictions overlap unless there's a clear hierarchy
of who reports to who. Writing documentation to be read by end users has
a significant editorial function.
