Linux wireless drivers development
 help / color / mirror / Atom feed
* A file to print the release of loaded compat-wireless stuff
@ 2010-05-04 20:44 Luis R. Rodriguez
  2010-05-04 21:11 ` Pavel Roskin
  0 siblings, 1 reply; 5+ messages in thread
From: Luis R. Rodriguez @ 2010-05-04 20:44 UTC (permalink / raw)
  To: linux-wireless

It seems there is a reasonable need to find out what version of
compat-wireless you have running. This will be a dated thing when
based on linux-next but more importantly it will contain the 2.6.3x.y
release the release was based on for the stable releases. Any ideas of
what filesystem API to use for this, I was thinking maybe a simple
sysfs entry for the compat module. Thoughts, preferences?

  Luis

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A file to print the release of loaded compat-wireless stuff
  2010-05-04 20:44 A file to print the release of loaded compat-wireless stuff Luis R. Rodriguez
@ 2010-05-04 21:11 ` Pavel Roskin
  2010-05-04 21:51   ` Luis R. Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Roskin @ 2010-05-04 21:11 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless

On Tue, 2010-05-04 at 13:44 -0700, Luis R. Rodriguez wrote:
> It seems there is a reasonable need to find out what version of
> compat-wireless you have running. This will be a dated thing when
> based on linux-next but more importantly it will contain the 2.6.3x.y
> release the release was based on for the stable releases. Any ideas of
> what filesystem API to use for this, I was thinking maybe a simple
> sysfs entry for the compat module. Thoughts, preferences?

We could use a read-only parameter of the compat module.  Then the
version would be in /sys/module/compat/parameters/version

Module parameters are visible in sysfs even if the code is compiled into
the kernel.

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A file to print the release of loaded compat-wireless stuff
  2010-05-04 21:11 ` Pavel Roskin
@ 2010-05-04 21:51   ` Luis R. Rodriguez
  2010-05-17 17:54     ` Luis R. Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Luis R. Rodriguez @ 2010-05-04 21:51 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: linux-wireless

On Tue, May 4, 2010 at 2:11 PM, Pavel Roskin <proski@gnu.org> wrote:
> On Tue, 2010-05-04 at 13:44 -0700, Luis R. Rodriguez wrote:
>> It seems there is a reasonable need to find out what version of
>> compat-wireless you have running. This will be a dated thing when
>> based on linux-next but more importantly it will contain the 2.6.3x.y
>> release the release was based on for the stable releases. Any ideas of
>> what filesystem API to use for this, I was thinking maybe a simple
>> sysfs entry for the compat module. Thoughts, preferences?
>
> We could use a read-only parameter of the compat module.  Then the
> version would be in /sys/module/compat/parameters/version
>
> Module parameters are visible in sysfs even if the code is compiled into
> the kernel.

Neat trick thanks for the tip, will give that a shot.

  Luis

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A file to print the release of loaded compat-wireless stuff
  2010-05-04 21:51   ` Luis R. Rodriguez
@ 2010-05-17 17:54     ` Luis R. Rodriguez
  2010-05-17 19:10       ` Pavel Roskin
  0 siblings, 1 reply; 5+ messages in thread
From: Luis R. Rodriguez @ 2010-05-17 17:54 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: linux-wireless

On Tue, May 4, 2010 at 2:51 PM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Tue, May 4, 2010 at 2:11 PM, Pavel Roskin <proski@gnu.org> wrote:
>> On Tue, 2010-05-04 at 13:44 -0700, Luis R. Rodriguez wrote:
>>> It seems there is a reasonable need to find out what version of
>>> compat-wireless you have running. This will be a dated thing when
>>> based on linux-next but more importantly it will contain the 2.6.3x.y
>>> release the release was based on for the stable releases. Any ideas of
>>> what filesystem API to use for this, I was thinking maybe a simple
>>> sysfs entry for the compat module. Thoughts, preferences?
>>
>> We could use a read-only parameter of the compat module.  Then the
>> version would be in /sys/module/compat/parameters/version
>>
>> Module parameters are visible in sysfs even if the code is compiled into
>> the kernel.
>
> Neat trick thanks for the tip, will give that a shot.

Oh wow, and look at that, even if you enable the module as built-in to
the kernel you still get the module parameter sysfs file for it. For
example I just built-in cfg80211 on my kernel and I still see the
ieee80211_regdom module parameter:

mcgrof@tux ~ $ lsmod | grep cfg
mcgrof@tux ~ $ cat /sys/module/cfg80211/parameters/ieee80211_regdom
00

This is important as some distributions [1] might built-in some stable
compat-wireless releases into their older kernel releases.

  Luis

[1] http://src.chromium.org/cgi-bin/gitweb.cgi?p=kernel.git;a=commit;h=73ec6aa6d7ed254d235939bf00ea49cbb6526e6f

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: A file to print the release of loaded compat-wireless stuff
  2010-05-17 17:54     ` Luis R. Rodriguez
@ 2010-05-17 19:10       ` Pavel Roskin
  0 siblings, 0 replies; 5+ messages in thread
From: Pavel Roskin @ 2010-05-17 19:10 UTC (permalink / raw)
  To: Luis R. Rodriguez; +Cc: linux-wireless

On Mon, 2010-05-17 at 10:54 -0700, Luis R. Rodriguez wrote:

> Oh wow, and look at that, even if you enable the module as built-in to
> the kernel you still get the module parameter sysfs file for it. For
> example I just built-in cfg80211 on my kernel and I still see the
> ieee80211_regdom module parameter:
> 
> mcgrof@tux ~ $ lsmod | grep cfg
> mcgrof@tux ~ $ cat /sys/module/cfg80211/parameters/ieee80211_regdom
> 00
> 
> This is important as some distributions [1] might built-in some stable
> compat-wireless releases into their older kernel releases.

I actually wanted to mention that, but decided that it's irrelevant to
compat-wireless.  It turns out I should have.

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-05-17 19:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-04 20:44 A file to print the release of loaded compat-wireless stuff Luis R. Rodriguez
2010-05-04 21:11 ` Pavel Roskin
2010-05-04 21:51   ` Luis R. Rodriguez
2010-05-17 17:54     ` Luis R. Rodriguez
2010-05-17 19:10       ` Pavel Roskin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox