Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755797Ab0LOXdJ (ORCPT ); Wed, 15 Dec 2010 18:33:09 -0500 Received: from mail-px0-f179.google.com ([209.85.212.179]:60998 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753046Ab0LOXdF (ORCPT ); Wed, 15 Dec 2010 18:33:05 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=dEsFFOGMU80IVGrwFp3k7boS9+sEvh61Ixg/BlWlLhtIK7q9pgxZHeb0ph/J+msRpi yAMk4jDI7IzVL35wLgdHy7//bXNjrhyXMa/6pLqDNr1zRK4B/2JmQzYMggbWZfRzu/TV ZUGGANGyxG6WXy5hjOE6gnu/VcNjCn0w4Bhbc= MIME-Version: 1.0 In-Reply-To: <20101215221454.GB6560@dtor-ws.eng.vmware.com> References: <20101215220019.GA6560@dtor-ws.eng.vmware.com> <20101215221454.GB6560@dtor-ws.eng.vmware.com> Date: Thu, 16 Dec 2010 01:25:27 +0200 Message-ID: Subject: Re: [PATCH] Show version information for built-in modules in sysfs From: Alexey Dobriyan To: Dmitry Torokhov Cc: LKML , Rusty Russell Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 26 On Thu, Dec 16, 2010 at 12:14 AM, Dmitry Torokhov wrote: > On Wed, Dec 15, 2010 at 02:06:03PM -0800, Alexey Dobriyan wrote: >> On Thu, Dec 16, 2010 at 12:00 AM, Dmitry Torokhov wrote: >> > Currently only drivers that are built as modules have their versions >> > shown in /sys/module//version, but this information might >> >> Can you create just /sys/module/x? >> Module version info is quite useless by itself. > > It is as useful as in the case where driver is built as a module. I am > just trying to unify the behavior a bit. > > Code-wise it is almost as cheap to add /sys/module/x/version as adding > just the directory. OK. Still, people are using /sys/module/x presence as indicator of modular built (unsurprisingly). http://codesearch.google.com/codesearch/p?hl=en#wZuuyuB8jKQ/src/third_party/autotest/files/client/profilers/powertop/src/bluetooth.c&q=/sys/modules&sa=N&cd=3&ct=rc&l=105 -- 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/