Re: sysconf - exposing constants to userspace

From: Tim Hockin
Date: Thu Feb 19 2004 - 19:54:31 EST


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@xxxxxxx
All opinions are my own, not Sun's
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/