Re: sysconf - exposing constants to userspace

Tim Hockin
2004-02-20T00:48:08Z

On Thu, Feb 19, 2004 at 07:29:45PM -0500, Jeff Sipek wrote:
> If I understand the original post correctly, the numbers that we don't make
> available to userspace are compile time constants. For example, since I can't
> think of anything better, NR_CPUS. It is set during the config process, but
> one cannot read the number from userspace while running that kernel. I know
> that there are better examples, but I just can't think of any at the moment.
>
> If I missed the point of the original post, please ignore me.

No, you got it. BUt I was specifically thinking of POSIX sysconf stuff,
like NGROUPS_MAX. See <linux/limits.h>.

--
Tim Hockin
Sun Microsystems, Linux Software Engineering
thockin@sun.com
All opinions are my own, not Sun's