Search Linux Wireless

Re: [PATCH] rfkill: create useful userspace interface

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

 



Henrique de Moraes Holschuh wrote:
On Sun, 07 Jun 2009, Alan Jenkins wrote:
 1) remove rfkill_set_global_sw_state()
 2) rfkill devices with NVS can e.g. call rfkill_has_nvs() before
registration, setting a flag.
 3) the "has NVS" flag is reported by /dev/rfkill, (at least in ADD
events, tho it may as well be set in all events)
 4) rfkill-input preserves existing behaviour - *if enabled* - by
initializing the global state from individual devices which have NVS.
(As before, each _type_ of rfkill device has its own global state).
 5) rfkill devices with NVS will have their current state preserved,
so long as the global state has not yet been set (by userspace or by
rfkill-input).  Of course userspace can change the state in response
to the device being added.

I can agree to that, it will avoid the regression I have been
complaining about, and seems to address the major complaints against
what we have now...

Yeah, I hope it avoids the objections about NVS in /dev/rfkill. We avoid the separate NVS operation. And it exports the NVS state through the specific device it comes from, rather than exporting it as a global state.

So userspace gets more specific information; at the same time the interface is simpler because the information comes in a single message, and it's less prescriptive because it doesn't push the idea of global state(s) quite so much.

I think it should probably be enhanced (it doesn't have to be enhanced
_now_, however) to let the core call back into NVS-providing drivers to
checkpoint NVS state.  But that's not something I feel strongly about.

Ok. I think that feature would be subject to further debate / clarification. So I will ignore it and code up the basics outlined above :-).

Otherwise, the driver will checkpoint to NVS whatever is the state of
its rfkill device, which could have been changed outside of the global
scope.  While that's exacly what we do right now, it is arguably not the
best way to go about it (i.e. it is broken).

Comments?

Let's do it :-)

Cool :-). I'll see what I can do.

Alan

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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