Re: 2.6.21-rc5-mm2 - compile error on x86-64

From: Eric W. Biederman
Date: Sat Mar 31 2007 - 02:54:34 EST


Helge Hafting <helgehaf@xxxxxxxxxxxxx> writes:

> Correct. I seem to remember that the latter is considered
> "deprecated, but some programs may still depend on it". So I disabled it to
> see what broke. udev complained about the missing /proc/sys/kernel/hotplug,
> but was happy to use /sys/kernel/uevent_helper instead. I didn't
> notice other problems, so I left things like that.

Well if anything it is the other way around. The preferred interface to
sysctls is /proc/sys. There is the whole thing where people aren't to
happy with non-process related things in /proc, so in that sense there
is a bit of deprecation, but /proc and /proc/sys are fully supported.

The plethora of configuration is what remains when I dug into the binary
sys_sysctl interface and tested the assertion that no one uses it, and
it has been deprecated for years and we could just kill it.

We can now remove the binary sys_sysctl syscall while keeping /proc/sys
support. Someday I might even get ambitious and add the appropriate
deprecated warnings so we can kill the binary interface.

I got as far as seeing that there were a small handful of real
programs that use sys_sysctl. I looked at how were giving notice
and realized that was insufficient to tell users we were deprecating
the thing. I didn't see much point (except being able to immediate
drop support) to removing sys_sysctl and since we would have to go
a couple of years still supporting it to remove it properly I got
lazy and stopped.

Maybe myself or someone else can get ambitious and deprecate
sys_sysctl properly and we can remove it one of these years...

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