Re: sysctl vs /proc/sys

From: YOSHIFUJI Hideaki / 吉藤英明
Date: Fri Dec 12 2003 - 08:55:59 EST


In article <Xine.LNX.4.44.0312120815170.2611-100000@xxxxxxxxxxxxxxxxxxxxxxxx> (at Fri, 12 Dec 2003 08:20:41 -0500 (EST)), James Morris <jmorris@xxxxxxxxxx> says:

> On Fri, 12 Dec 2003, YOSHIFUJI Hideaki / [iso-2022-jp] 吉藤英明 wrote:
>
> > Or, I'd rather propose introducing sysctlbyname(2).
>
> See the thread at
> http://marc.theaimsgroup.com/?l=linux-kernel&m=105788786819578&w=2

Thanks, James. I think I missed the thread.

Well, some applications which can run on *BSD* and Linux uses sysctl.
Because using procfs changes the semantics, I'd love to have sysctlbyname().

Can we get the exact previous value from /proc/sys atomicly?
If so, I'm ok not to have sysctlbyname(2)
because we can have sysctlbyname(3).

If no, please let's have sysctlbyname(2); there ARE
something we cannot do only without sysctl variants.

Note: sysctlbyname(3) and sysctlnametomib(3) is in FreeBSD.

--yoshfuji




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