Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161003AbWJRMqj (ORCPT ); Wed, 18 Oct 2006 08:46:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161007AbWJRMqj (ORCPT ); Wed, 18 Oct 2006 08:46:39 -0400 Received: from mail.suse.de ([195.135.220.2]:37574 "EHLO mx1.suse.de") by vger.kernel.org with ESMTP id S1161003AbWJRMqi (ORCPT ); Wed, 18 Oct 2006 08:46:38 -0400 From: Andi Kleen To: Alan Cox Subject: Re: [PATCH] Undeprecate the sysctl system call Date: Wed, 18 Oct 2006 14:41:51 +0200 User-Agent: KMail/1.9.3 Cc: Cal Peake , Andrew Morton , Randy Dunlap , Jan Beulich , Kernel Mailing List References: <453519EE.76E4.0078.0@novell.com> <1161173741.9363.22.camel@localhost.localdomain> In-Reply-To: <1161173741.9363.22.camel@localhost.localdomain> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200610181441.51748.ak@suse.de> Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1129 Lines: 26 On Wednesday 18 October 2006 14:15, Alan Cox wrote: > > Anyways, imho the right solution is to remove the numerical > > sysctl infrastructure (including most of sysctl.h), but keep > > sys_sysctl() with a small mapping table that maps the few > > numerical sysctls (mostly KERN_VERSION) that are actually used to > > path names internally. The rest should be ENOSYS. > > More work for less compatibility, that doesn't sound very clever. It's less work long term, mostly because all the rejects for sysctl.h will go away. And it's more compatible than just removing sysctl(2) completely. The main reason i think at least emulating KERN_VERSION is a good idea is that it will save a bit of time with older executables who do this on every startup. /proc/sys/* is a little slow to do that often. Normally sysctls are not that time critical so this is really a exception. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/