Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1330676
| From | Julian Calaby <julian.calaby@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 8/9] rfkill: Userspace control for airplane mode |
| Date | 2016-02-09 23:10 +0100 |
| Message-ID | <r0oDV-1LZ-9@gated-at.bofh.it> (permalink) |
| References | <r0oaS-1mT-5@gated-at.bofh.it> <r0oaS-1mT-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi All, On Wed, Feb 10, 2016 at 8:36 AM, João Paulo Rechi Vita <jprvita@gmail.com> wrote: > Provide an interface for the airplane-mode indicator be controlled from > userspace. User has to first acquire the control through > RFKILL_OP_AIRPLANE_MODE_ACQUIRE and keep the fd open for the whole time > it wants to be in control of the indicator. Closing the fd or using > RFKILL_OP_AIRPLANE_MODE_RELEASE restores the default policy. > > To change state of the indicator, the RFKILL_OP_AIRPLANE_MODE_CHANGE > operation is used, passing the value on "struct rfkill_event.soft". If > the caller has not acquired the airplane-mode control beforehand, the > operation fails. > > Signed-off-by: João Paulo Rechi Vita <jprvita@endlessm.com> This looks sane to me. Reviewed-by: Julian Calaby <julian.calaby@gmail.com> Thanks, -- Julian Calaby Email: julian.calaby@gmail.com Profile: http://www.google.com/profiles/julian.calaby/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 8/9] rfkill: Userspace control for airplane mode "João Paulo Rechi Vita" <jprvita@gmail.com> - 2016-02-09 22:40 +0100 Re: [PATCH 8/9] rfkill: Userspace control for airplane mode Julian Calaby <julian.calaby@gmail.com> - 2016-02-09 23:10 +0100
csiph-web