Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1329270

Re: [PATCH 8/9] rfkill: Userspace control for airplane mode

From Marcel Holtmann <marcel@holtmann.org>
Newsgroups linux.kernel
Subject Re: [PATCH 8/9] rfkill: Userspace control for airplane mode
Date 2016-02-08 17:30 +0100
Message-ID <qZWRj-7IX-9@gated-at.bofh.it> (permalink)
References <qZWeB-7eV-5@gated-at.bofh.it> <qZWeC-7eV-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Joa Paulo,

> 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.

as explained in an earlier response, the concept Airplane Mode seems to be imposing policy into the kernel. Do we really want have this as a kernel exposed API.

Regards

Marcel

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 8/9] rfkill: Userspace control for airplane mode "João Paulo Rechi Vita" <jprvita@gmail.com> - 2016-02-08 16:50 +0100
  Re: [PATCH 8/9] rfkill: Userspace control for airplane mode Dan Williams <dcbw@redhat.com> - 2016-02-08 17:20 +0100
    Re: [PATCH 8/9] rfkill: Userspace control for airplane mode João Paulo Rechi Vita <jprvita@gmail.com> - 2016-02-08 18:40 +0100
  Re: [PATCH 8/9] rfkill: Userspace control for airplane mode Marcel Holtmann <marcel@holtmann.org> - 2016-02-08 17:30 +0100
    Re: [PATCH 8/9] rfkill: Userspace control for airplane mode Johannes Berg <johannes@sipsolutions.net> - 2016-02-08 18:20 +0100
    Re: [PATCH 8/9] rfkill: Userspace control for airplane mode João Paulo Rechi Vita <jprvita@gmail.com> - 2016-02-08 18:30 +0100
  Re: [PATCH 8/9] rfkill: Userspace control for airplane mode Julian Calaby <julian.calaby@gmail.com> - 2016-02-09 00:00 +0100

csiph-web