Search Linux Wireless

Re: [PATCH] rfkill: create useful userspace interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2009-06-01 at 09:28 -0300, Henrique de Moraes Holschuh wrote:

> It can have default values just fine.  And you can't wait for userspace or
> platform drivers to register a default, it just doesn't work, you cannot
> expect that all relevant drivers are loaded before "rfkilld".
> 
> Just don't expose a rfkill type until the first rfkill structure of that
> type gets registered.  THAT closes all holes in a sensible,
> principle-of-least-suprise way.  The current code (including the rewrite)
> already deals with defaults and firmware-backed state storage just fine in
> that case.   All you need is a full interface that deals with global state
> hotplug (which ain't difficult, that's one or two more notifications only).

Global state hotplug is just not really possible to support, and I don't
think even your original code supported that, since it cannot affect
previously registered rfkill instances. You definitely don't want to
hotplug a wireless device and turn off all others "due to that".

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux