Re: where to export system tuneables, /proc/sys/kernel or /sys/?

From: H. Peter Anvin
Date: Tue Feb 08 2005 - 17:50:10 EST


Followup to: <4207A395.1060901@xxxxxxxxxx>
By author: Chris Friesen <cfriesen@xxxxxxxxxx>
In newsgroup: linux.dev.kernel
>
> I'm doing some kernel work that will export tuneables to userspace. In
> 2.4 I would have used /proc/sys/kernel, but now there is /sys, which was
> supposed to be for system information.
>
> However, a bit of poking around in /sys didn't reveal any obvious place
> to put it. Is current practice to still put this sort of thing in /proc?
>

/proc/sys/kernel, using the sysctl internals, yes.

Note that the use of the sysctl(2) system call is highly deprecated,
but the /proc/sys filesystem tree is not; the reason is that the
numeric API used by the former is unstable.

-hpa
-
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/