Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261678AbVCTKxo (ORCPT ); Sun, 20 Mar 2005 05:53:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262132AbVCTKxo (ORCPT ); Sun, 20 Mar 2005 05:53:44 -0500 Received: from wproxy.gmail.com ([64.233.184.196]:21344 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S261678AbVCTKxm (ORCPT ); Sun, 20 Mar 2005 05:53:42 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=YVtjdzMd/bdDEGQ2T4t5DBhsTQc3fMohxR4VLjdAfyg2OE3GFz6T4jeH2YgVpeJg6+b+16N1tQLtbQBEgVOBuGC0EVKTVwE2qohEgkNXTsMIBfGi/BoEOPjK07QHbjFmDBPnWCG/tWTBNzPhYMUIitkgwFo1gPqrcFZXpP8/dnk= Message-ID: Date: Sun, 20 Mar 2005 11:53:42 +0100 From: Magnus Damm Reply-To: Magnus Damm To: Jan Engelhardt Subject: Re: [PATCH] disable builtin modules Cc: linux-kernel@vger.kernel.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <20050319230648.19238.42743.71351@clementine.local> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1340 Lines: 31 On Sun, 20 Mar 2005 10:51:41 +0100 (MET), Jan Engelhardt wrote: > > >This patch makes it possible to disable built in code from the kernel > >command line. The patch is rather simple - it extends the compiled-in case > >of module_init() to include __setup() with a name based on KBUILD_MODNAME. > > What if there is already an option like the modname? I do not know of any > code that currently does so, but you never know. > > Are acpi= and apm= already what your patch wants to extend to other modules? > If not, there's conflict. There is a conflict. Thanks for pointing that out. Both the obsolete __setup() parameter code and the module parameter code in kernel/params.c are limited to a single matching parameter. The first matching parameter will be used, and non-early obsoleted parameters are overridden by module parameter code. If I understand the code correctly that is. =) Maybe it is possible to (mis)use early_param instead of __setup and let these parameters become "high priority" parameters that only are parsed by do_early_param()...? / magnus - 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/