I think read-only sysctls are doing this fine. glibc has to implement
a sysconf wrapper for various reasons anyways, and then it can just call
sysctl(2). Another advantage is that it doesn't add any new code to the
kernel, just a few small sysctl table entries (and if that is not enough
sysctl is flexible enough to support arbitary functions)
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/