login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
20
Re: [PATCH 04/15] rfkill: clarify meaning of rfkill states
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Ivo van Doorn
Subject:
Re: [PATCH 04/15] rfkill: clarify meaning of rfkill states
Date: Tuesday, May 20, 2008 - 3:08 am
On Sunday 18 May 2008, Henrique de Moraes Holschuh wrote:
quoted text
> rfkill really should have been named rfswitch. As it is, one can get > confused whether RFKILL_STATE_ON means the KILL switch is on (and > therefore, the radio is being *blocked* from operating), or whether it > means the RADIO rf output is on. > > Clearly state that RFKILL_STATE_ON means the radio is *unblocked* from > operating (i.e. there is no rf killing going on). > > Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
quoted text
> Cc: Ivo van Doorn <IvDoorn@gmail.com> > Cc: John W. Linville <linville@tuxdriver.com> > Cc: Dmitry Torokhov <dtor@mail.ru> > --- > Documentation/rfkill.txt | 7 +++++++ > include/linux/rfkill.h | 6 +++--- > 2 files changed, 10 insertions(+), 3 deletions(-) > > diff --git a/Documentation/rfkill.txt b/Documentation/rfkill.txt > index a83ff23..ec75d6d 100644 > --- a/Documentation/rfkill.txt > +++ b/Documentation/rfkill.txt > @@ -8,6 +8,13 @@ rfkill - RF switch subsystem support > =============================================================================== > 1: Implementation details > > +The rfkill switch subsystem exists to add a generic interface to circuitry that > +can enable or disable the RF output of a radio *transmitter* of any type. > + > +When a rfkill switch is in the RFKILL_STATE_ON, the radio transmitter is > +*enabled*. When the rfkill switch is in the RFKILL_STATE_OFF, the radio > +transmitter is *disabled*. > + > The rfkill switch subsystem offers support for keys often found on laptops > to enable wireless devices like WiFi and Bluetooth. > > diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h > index e3ab21d..ca89ae1 100644 > --- a/include/linux/rfkill.h > +++ b/include/linux/rfkill.h > @@ -44,8 +44,8 @@ enum rfkill_type { > }; > > enum rfkill_state { > - RFKILL_STATE_OFF = 0, > - RFKILL_STATE_ON = 1, > + RFKILL_STATE_OFF = 0, /* Radio output blocked */ > + RFKILL_STATE_ON = 1, /* Radio output active */ > }; > > /** > @@ -53,7 +53,7 @@ enum rfkill_state { > * @name: Name of the switch. > * @type: Radio type which the button controls, the value stored > * here should be a value from enum rfkill_type. > - * @state: State of the switch (on/off). > + * @state: State of the switch, "ON" means radio can operate. > * @user_claim_unsupported: Whether the hardware supports exclusive > * RF-kill control by userspace. Set this before registering. > * @user_claim: Set when the switch is controlled exlusively by userspace.
--
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC] rfkill class rework
, Henrique de Moraes H ...
, (Sun May 18, 11:47 am)
[PATCH 01/15] ACPI: thinkpad-acpi: fix initialization erro ...
, Henrique de Moraes H ...
, (Sun May 18, 11:47 am)
[PATCH 02/15] ACPI: thinkpad-acpi: fix LED handling on old ...
, Henrique de Moraes H ...
, (Sun May 18, 11:47 am)
[PATCH 03/15] Input: rename SW_RADIO to SW_RFKILL_ALL (v2)
, Henrique de Moraes H ...
, (Sun May 18, 11:47 am)
[PATCH 04/15] rfkill: clarify meaning of rfkill states
, Henrique de Moraes H ...
, (Sun May 18, 11:47 am)
[PATCH 05/15] rfkill: fix minor typo in kernel doc
, Henrique de Moraes H ...
, (Sun May 18, 11:47 am)
[PATCH 06/15] rfkill: handle SW_RFKILL_ALL events
, Henrique de Moraes H ...
, (Sun May 18, 11:47 am)
[PATCH 07/15] rfkill: add parameter to disable radios by d ...
, Henrique de Moraes H ...
, (Sun May 18, 11:47 am)
[PATCH 08/15] rfkill: add read-write rfkill switch support
, Henrique de Moraes H ...
, (Sun May 18, 11:47 am)
[PATCH 09/15] rfkill: add the WWAN radio type
, Henrique de Moraes H ...
, (Sun May 18, 11:47 am)
[PATCH 10/15] rfkill: rework suspend and resume handlers
, Henrique de Moraes H ...
, (Sun May 18, 11:48 am)
[PATCH 11/15] rfkill: add notifier chains support
, Henrique de Moraes H ...
, (Sun May 18, 11:48 am)
[PATCH 12/15] rfkill: add type string helper
, Henrique de Moraes H ...
, (Sun May 18, 11:48 am)
[PATCH 13/15] rfkill: add uevent notifications
, Henrique de Moraes H ...
, (Sun May 18, 11:48 am)
[PATCH 14/15] rfkill: do not allow userspace to override A ...
, Henrique de Moraes H ...
, (Sun May 18, 11:48 am)
[PATCH 15/15] rfkill: document rw rfkill switches and clar ...
, Henrique de Moraes H ...
, (Sun May 18, 11:48 am)
Re: [PATCH 11/15] rfkill: add notifier chains support
, Thomas Renninger
, (Mon May 19, 1:44 am)
Re: [PATCH 11/15] rfkill: add notifier chains support
, Henrique de Moraes H ...
, (Mon May 19, 6:10 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Randy Dunlap
, (Mon May 19, 10:51 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Henrique de Moraes H ...
, (Mon May 19, 3:04 pm)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Elias Oltmanns
, (Mon May 19, 3:52 pm)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Randy Dunlap
, (Mon May 19, 3:56 pm)
Re: [PATCH 04/15] rfkill: clarify meaning of rfkill states
, Ivo van Doorn
, (Tue May 20, 3:08 am)
Re: [PATCH 05/15] rfkill: fix minor typo in kernel doc
, Ivo van Doorn
, (Tue May 20, 3:08 am)
Re: [PATCH 06/15] rfkill: handle SW_RFKILL_ALL events
, Ivo van Doorn
, (Tue May 20, 3:08 am)
Re: [PATCH 08/15] rfkill: add read-write rfkill switch support
, Ivo van Doorn
, (Tue May 20, 3:08 am)
Re: [PATCH 09/15] rfkill: add the WWAN radio type
, Ivo van Doorn
, (Tue May 20, 3:08 am)
Re: [PATCH 10/15] rfkill: rework suspend and resume handlers
, Ivo van Doorn
, (Tue May 20, 3:08 am)
Re: [PATCH 11/15] rfkill: add notifier chains support
, Ivo van Doorn
, (Tue May 20, 3:09 am)
Re: [PATCH 12/15] rfkill: add type string helper
, Ivo van Doorn
, (Tue May 20, 3:09 am)
Re: [PATCH 13/15] rfkill: add uevent notifications
, Ivo van Doorn
, (Tue May 20, 3:09 am)
Re: [PATCH 14/15] rfkill: do not allow userspace to overri ...
, Ivo van Doorn
, (Tue May 20, 3:09 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Ivo van Doorn
, (Tue May 20, 3:09 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Henrique de Moraes H ...
, (Tue May 20, 8:54 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Ivo van Doorn
, (Tue May 20, 10:18 am)
Re: [PATCH 09/15] rfkill: add the WWAN radio type
, Henrique de Moraes H ...
, (Tue May 20, 6:12 pm)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Henrique de Moraes H ...
, (Tue May 20, 6:44 pm)
Re: [PATCH 09/15] rfkill: add the WWAN radio type
, Inaky Perez-Gonzalez
, (Tue May 20, 8:35 pm)
Re: [PATCH 09/15] rfkill: add the WWAN radio type
, Henrique de Moraes H ...
, (Tue May 20, 8:42 pm)
Re: [PATCH 09/15] rfkill: add the WWAN radio type
, Inaky Perez-Gonzalez
, (Tue May 20, 11:48 pm)
Re: [PATCH 09/15] rfkill: add the WWAN radio type
, Henrique de Moraes H ...
, (Wed May 21, 7:07 am)
Re: [PATCH 14/15] rfkill: do not allow userspace to overri ...
, Henrique de Moraes H ...
, (Thu May 22, 1:51 pm)
Re: [PATCH 14/15] rfkill: do not allow userspace to overri ...
, Ivo van Doorn
, (Fri May 23, 7:15 am)
Re: [PATCH 14/15] rfkill: do not allow userspace to overri ...
, Henrique de Moraes H ...
, (Tue May 27, 7:08 am)
Re: [PATCH 14/15] rfkill: do not allow userspace to overri ...
, Ivo van Doorn
, (Tue May 27, 7:38 am)
Re: [PATCH 14/15] rfkill: do not allow userspace to overri ...
, Henrique de Moraes H ...
, (Tue May 27, 10:41 am)
Re: [PATCH 14/15] rfkill: do not allow userspace to overri ...
, Ivo van Doorn
, (Tue May 27, 11:13 am)
[PATCH 15/15] rfkill: document rw rfkill switches and clar ...
, Henrique de Moraes H ...
, (Wed May 28, 5:45 pm)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Ivo van Doorn
, (Thu May 29, 6:02 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Henrique de Moraes H ...
, (Thu May 29, 9:26 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Ivo van Doorn
, (Thu May 29, 10:19 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Henrique de Moraes H ...
, (Thu May 29, 10:22 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Ivo van Doorn
, (Thu May 29, 10:40 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Henrique de Moraes H ...
, (Thu May 29, 10:46 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Dmitry Torokhov
, (Thu May 29, 11:58 am)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Henrique de Moraes H ...
, (Thu May 29, 2:16 pm)
[PATCH] Input: rename SW_RADIO to SW_RFKILL_ALL (v2)
, Henrique de Moraes H ...
, (Thu May 29, 2:25 pm)
Re: [PATCH 15/15] rfkill: document rw rfkill switches and ...
, Henrique de Moraes H ...
, (Tue Jun 3, 8:11 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Alan Cox
Re: Please add ZFS support (from GPL sources)
Rafael J. Wysocki
[Bug #11287] Regression in 2.6.27-rc2 in acpi_processor_init()
Ingo Molnar
Re: [PATCH] x86: silence section mismatch warning - uv_cpu_init
Ingo Molnar
Re: [GIT PULL] time.c - respin
Lennart Poettering
Re: [PATCH] exit: PR_SET_ANCHOR for marking processes as reapers for child proce...
git
:
Mark Junker
git on MacOSX and files with decomposed utf-8 file names
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
Johannes Schindelin
Re: [WIP PATCH] Add 'git fast-export', the sister of 'git fast-import'
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Cabillot Julien
Re: OpenBSD isakmpd and pf vs Cisco PIX or ASA
Stephen J. Bevan
GRE over IPsec
Guido Tschakert
Re: what exactly is enc0?
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
[ARM] 4691/1: add missing i2c_board_info struct for at91rm9200
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
Colocation donated by:
Syndicate